Skip to content
Tcl Source Code History Of Ticket 218456
Login

History Of Ticket 218456

Artifacts Associated With Ticket 218456

  1. Ticket change [f2e21a163d] (rid 109634) by nobody on 2000-10-26 01:00:36:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 598 Bug
      Version: 8.0p2
      SubmitDate: '1998-05-21'
      LastModified: '1998-09-30'
      Severity: SER
      Status: Released
      Submitter: rjohnson
      ChangedBy: rjohnson
      OS: All Unix
      OSVersion: NA
      Machine: NA
      FixedDate: '2000-10-25'
      FixedInVersion: 8.0.4
      ClosedDate: '1998-09-30'
      
      
      There is a memory leak in tkUnixWm.c in Tk8.0p2.  It appears to still
      
      be present in Tk8.1a2.  This patch should be self explanatory.
      
      
      
      Ian Taylor
      
      [email protected]
      
      
      
      *** /5g/ian/tk8.0p2/unix/tkUnixWm.c     Fri Oct 31 14:29:22 1997
      
      --- tkUnixWm.c  Tue Apr 14 17:47:21 1998
      
      *************** Tk_WmCmd(clientData, interp, argc, argv)
      
      *** 1324,1329 ****
      
      --- 1324,1332 ----
      
                  interp->result = (wmPtr->iconName != NULL) ? wmPtr->iconName : "";
      
                  return TCL_OK;
      
              } else {
      
      +           if (wmPtr->iconName != NULL) {
      
      +               ckfree(wmPtr->iconName);
      
      +           }
      
                  wmPtr->iconName = ckalloc((unsigned) (strlen(argv[3]) + 1));
      
                  strcpy(wmPtr->iconName, argv[3]);
      
                  if (!(wmPtr->flags & WM_NEVER_MAPPED)) {
      
      *************** Tk_WmCmd(clientData, interp, argc, argv)
      
      *** 1723,1728 ****
      
      --- 1726,1734 ----
      
                          : winPtr->nameUid;
      
                  return TCL_OK;
      
              } else {
      
      +           if (wmPtr->title != NULL) {
      
      +               ckfree(wmPtr->title);
      
      +           }
      
                  wmPtr->title = ckalloc((unsigned) (strlen(argv[3]) + 1));
      
                  strcpy(wmPtr->title, argv[3]);
      
                  if (!(wmPtr->flags & WM_NEVER_MAPPED)) {
      
      
      
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.0p2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Memory leak in tkUnixWm.c"
    11. type initialized to: "Bug"
  2. Ticket change [d1d4b95116] (rid 113421) by welch on 2000-10-26 08:22:17:

    1. closedate changed to: "2000-10-26T01:22:17"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [a095701268] (rid 96837) by dgp on 2001-04-16 20:36:15:

    1. closedate changed to: "2001-04-16T13:36:15"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "None"