|
2001-04-16
| ||
| 20:36 | • Ticket [218456ffff] Memory leak in tkUnixWm.c status still Closed with 4 oth... artifact: a095701268 user: dgp | |
|
2000-10-26
| ||
| 08:22 | • Closed ticket [218456ffff]. artifact: d1d4b95116 user: welch | |
| 01:00 | • New ticket [218456ffff]. artifact: f2e21a163d user: nobody | |
Memory leak in tkUnixWm.c
Closed / Invalid218456ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:00:36
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)) {
welch Closed ticket [218456ffff].
[History diff]2000-10-26 08:22:17
dgp Ticket [218456ffff]: 4 changes
[History diff]2001-04-16 20:36:15
Log in (anonymous is fine) to add a comment.