summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-08-24 23:57:59 (GMT)
committerhobbs <hobbs>2001-08-24 23:57:59 (GMT)
commit36ec8f9e516d45f47763d26dc2e152e6c779ea54 (patch)
tree15f63e9b044a2b59f8eab93397bccb72f0bfe144
parent5642b0528a7ee9892748d6d1cfbc04a22319728f (diff)
downloadtk-36ec8f9e516d45f47763d26dc2e152e6c779ea54.zip
tk-36ec8f9e516d45f47763d26dc2e152e6c779ea54.tar.gz
tk-36ec8f9e516d45f47763d26dc2e152e6c779ea54.tar.bz2
* generic/tkWindow.c (Tk_DestroyWindow): changed to use
Tcl_EventuallyFree instead of ckfree so that widgets that have references to a tkwin can use them.
-rw-r--r--generic/tkWindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index f486234..9341a8b 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWindow.c,v 1.16 2000/03/24 23:13:18 ericm Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.16.2.1 2001/08/24 23:57:59 hobbs Exp $
*/
#include "tkPort.h"
@@ -1398,7 +1398,7 @@ Tk_DestroyWindow(tkwin)
}
}
}
- ckfree((char *) winPtr);
+ Tcl_EventuallyFree((ClientData) winPtr, TCL_DYNAMIC);
}
/*