diff options
author | das <das@noemail.net> | 2009-02-06 08:14:28 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2009-02-06 08:14:28 (GMT) |
commit | cf6ec713e18f690475a26415812992ff6ffe2e25 (patch) | |
tree | 2abe91563ad6a18f51a603d8c448ce85df67f85a /macosx | |
parent | 5ce4b42060352e852a83f1bdc74f7b6a340d7aca (diff) | |
download | tk-cf6ec713e18f690475a26415812992ff6ffe2e25.zip tk-cf6ec713e18f690475a26415812992ff6ffe2e25.tar.gz tk-cf6ec713e18f690475a26415812992ff6ffe2e25.tar.bz2 |
* generic/tkImgPhoto.c: fix leaks discovered with the Mac OS X
* generic/tkMenu.c: Instruments.app Leaks tool.
* macosx/tkMacOSXWm.c:
FossilOrigin-Name: 893b87235129b3f39582fa66f11e50b31764b73e
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index bbc458f..d756713 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.46 2007/12/18 18:21:31 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.47 2009/02/06 08:14:29 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -438,6 +438,9 @@ TkWmDeadWindow( if (wmPtr->hints.flags & IconMaskHint) { Tk_FreeBitmap(winPtr->display, wmPtr->hints.icon_mask); } + if (wmPtr->iconName != NULL) { + ckfree(wmPtr->iconName); + } if (wmPtr->leaderName != NULL) { ckfree(wmPtr->leaderName); } @@ -2982,6 +2985,9 @@ WmTransientCmd( argv3 = Tcl_GetStringFromObj(objv[3], &length); wmPtr->master = Tk_WindowId(master); + if (wmPtr->masterWindowName != NULL) { + ckfree(wmPtr->masterWindowName); + } wmPtr->masterWindowName = ckalloc((unsigned) length+1); strcpy(wmPtr->masterWindowName, argv3); } |