diff options
author | das <das> | 2009-02-06 08:13:23 (GMT) |
---|---|---|
committer | das <das> | 2009-02-06 08:13:23 (GMT) |
commit | a1bbe8d7237c4d3eb78f0e1b73ee8e1c15ee0fb6 (patch) | |
tree | 44f593df44065d8dcb637789eb6a8916b17c1726 /macosx | |
parent | c92a226958ca1cf6a430aee5faf782c8a324c82e (diff) | |
download | tk-a1bbe8d7237c4d3eb78f0e1b73ee8e1c15ee0fb6.zip tk-a1bbe8d7237c4d3eb78f0e1b73ee8e1c15ee0fb6.tar.gz tk-a1bbe8d7237c4d3eb78f0e1b73ee8e1c15ee0fb6.tar.bz2 |
* generic/tkImgPhoto.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/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 88e49fe..dd9b93e 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.63.2.2 2008/11/15 00:37:30 patthoyts Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.63.2.3 2009/02/06 08:13:23 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -426,6 +426,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); } @@ -2960,6 +2963,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); } |