summaryrefslogtreecommitdiffstats
path: root/generic/tkImage.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-01-19 09:50:01 (GMT)
committerhobbs <hobbs>2003-01-19 09:50:01 (GMT)
commitb2bfe80a4f86bf9cd9235f5cd97e3de7181ec0e9 (patch)
tree22340d6e6ad261d4e41bd28c4d19541f726acf16 /generic/tkImage.c
parent195c588ddf199da7988df4c55d1147508676538b (diff)
downloadtk-b2bfe80a4f86bf9cd9235f5cd97e3de7181ec0e9.zip
tk-b2bfe80a4f86bf9cd9235f5cd97e3de7181ec0e9.tar.gz
tk-b2bfe80a4f86bf9cd9235f5cd97e3de7181ec0e9.tar.bz2
* generic/tkImage.c (DeleteImage): delete the image's entry in the
image table correctly when there are no more instances. This reopens bug 220891. [Bug #669759]
Diffstat (limited to 'generic/tkImage.c')
-rw-r--r--generic/tkImage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tkImage.c b/generic/tkImage.c
index 548be74..3312aef 100644
--- a/generic/tkImage.c
+++ b/generic/tkImage.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkImage.c,v 1.17 2002/08/05 04:30:39 dgp Exp $
+ * RCS: @(#) $Id: tkImage.c,v 1.18 2003/01/19 09:50:01 hobbs Exp $
*/
#include "tkInt.h"
@@ -908,9 +908,7 @@ DeleteImage(masterPtr)
(*typePtr->deleteProc)(masterPtr->masterData);
}
if (masterPtr->instancePtr == NULL) {
- if ((masterPtr->winPtr->flags & TK_ALREADY_DEAD) == 0) {
- Tcl_DeleteHashEntry(masterPtr->hPtr);
- }
+ Tcl_DeleteHashEntry(masterPtr->hPtr);
Tcl_Release((ClientData) masterPtr->winPtr);
ckfree((char *) masterPtr);
}