diff options
author | das <das> | 2009-02-06 08:14:28 (GMT) |
---|---|---|
committer | das <das> | 2009-02-06 08:14:28 (GMT) |
commit | 1f997eede68e3ffe3fe7ca91b7c516ac4f06b3ea (patch) | |
tree | 2abe91563ad6a18f51a603d8c448ce85df67f85a /generic/tkImgPhoto.c | |
parent | 9f0e53e5ba6a0596728589568db4e9b307cb9ae1 (diff) | |
download | tk-1f997eede68e3ffe3fe7ca91b7c516ac4f06b3ea.zip tk-1f997eede68e3ffe3fe7ca91b7c516ac4f06b3ea.tar.gz tk-1f997eede68e3ffe3fe7ca91b7c516ac4f06b3ea.tar.bz2 |
* generic/tkImgPhoto.c: fix leaks discovered with the Mac OS X
* generic/tkMenu.c: Instruments.app Leaks tool.
* macosx/tkMacOSXWm.c:
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r-- | generic/tkImgPhoto.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 3a2c3c3..bbda26e 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -17,7 +17,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPhoto.c,v 1.36.2.18 2007/06/23 00:26:42 das Exp $ + * RCS: @(#) $Id: tkImgPhoto.c,v 1.36.2.19 2009/02/06 08:14:29 das Exp $ */ #include "tkInt.h" @@ -2478,6 +2478,8 @@ ImgPhotoGet(tkwin, masterData) WhitePixelOfScreen(Tk_Screen(tkwin)); gcValues.background = (black != NULL)? black->pixel: BlackPixelOfScreen(Tk_Screen(tkwin)); + Tk_FreeColor(white); + Tk_FreeColor(black); gcValues.graphics_exposures = False; instancePtr->gc = Tk_GetGC(tkwin, GCForeground|GCBackground|GCGraphicsExposures, &gcValues); |