diff options
author | das <das> | 2009-02-06 08:12:06 (GMT) |
---|---|---|
committer | das <das> | 2009-02-06 08:12:06 (GMT) |
commit | 76e883da5646c90946512d237df48377778d63cc (patch) | |
tree | 575c6e052e7d2d83bbdced2270820a4e834455eb /macosx | |
parent | aa3ffc278895964cd47e3ef9e875eee6f8b7e71b (diff) | |
download | tk-76e883da5646c90946512d237df48377778d63cc.zip tk-76e883da5646c90946512d237df48377778d63cc.tar.gz tk-76e883da5646c90946512d237df48377778d63cc.tar.bz2 |
* generic/tkImgPhInstance.c: fix numerous leaks discovered with the
* generic/tkMenu.c: Mac OS X Instruments.app Leaks tool.
* generic/tkText.c:
* generic/tkTextImage.c:
* generic/tkTextIndex.c:
* generic/tkUndo.c:
* generic/tkUtil.c:
* generic/ttk/ttkFrame.c:
* macosx/tkMacOSXWm.c:
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 96605c8..94fa8ba 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.73 2008/12/07 16:36:26 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.74 2009/02/06 08:12:07 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -465,6 +465,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); } @@ -2998,6 +3001,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); } |