diff options
author | das <das> | 2009-02-06 08:13:23 (GMT) |
---|---|---|
committer | das <das> | 2009-02-06 08:13:23 (GMT) |
commit | 15a787b4fd8d5503b075058f4e2ee096eb8d1924 (patch) | |
tree | 44f593df44065d8dcb637789eb6a8916b17c1726 /generic/tkTextImage.c | |
parent | 86073d3f1d918d1867733cd3eca92d32e88edb12 (diff) | |
download | tk-15a787b4fd8d5503b075058f4e2ee096eb8d1924.zip tk-15a787b4fd8d5503b075058f4e2ee096eb8d1924.tar.gz tk-15a787b4fd8d5503b075058f4e2ee096eb8d1924.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 'generic/tkTextImage.c')
-rw-r--r-- | generic/tkTextImage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tkTextImage.c b/generic/tkTextImage.c index e63b909..dcdcd35 100644 --- a/generic/tkTextImage.c +++ b/generic/tkTextImage.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkTextImage.c,v 1.22 2007/12/13 15:24:17 dgp Exp $ + * RCS: @(#) $Id: tkTextImage.c,v 1.22.2.1 2009/02/06 08:13:23 das Exp $ */ #include "tkPort.h" @@ -472,6 +472,9 @@ EmbImageDeleteProc( Tk_FreeConfigOptions((char *) &eiPtr->body.ei, eiPtr->body.ei.optionTable, NULL); + if (eiPtr->body.ei.name) { + ckfree(eiPtr->body.ei.name); + } ckfree((char *) eiPtr); return 0; } |