diff options
author | kennykb <kennykb@noemail.net> | 2005-06-24 18:21:36 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2005-06-24 18:21:36 (GMT) |
commit | 75ec4722418880bfe2395368907a98e50560c1c3 (patch) | |
tree | e61562eda7d9ce59a92bc8c1e14fda5f852ffe6d /generic/tclEvent.c | |
parent | a95b3e5c3b87446296175b3af934dfaae1cc35d1 (diff) | |
download | tcl-75ec4722418880bfe2395368907a98e50560c1c3.zip tcl-75ec4722418880bfe2395368907a98e50560c1c3.tar.gz tcl-75ec4722418880bfe2395368907a98e50560c1c3.tar.bz2 |
finalize Tcl_Preserve after exit handlers
FossilOrigin-Name: 7dafabb1d224c05c6f58398902dc626f6fe55474
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r-- | generic/tclEvent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c index 81b6b2d..acabcc0 100644 --- a/generic/tclEvent.c +++ b/generic/tclEvent.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: tclEvent.c,v 1.28.2.10 2005/06/22 19:35:15 kennykb Exp $ + * RCS: @(#) $Id: tclEvent.c,v 1.28.2.11 2005/06/24 18:21:39 kennykb Exp $ */ #include "tclInt.h" @@ -904,13 +904,16 @@ Tcl_Finalize() * nobody's done this. */ +#ifdef TCL_MEM_DEBUG if ( firstExitPtr != NULL ) { Tcl_Panic( "exit handlers were created during Tcl_Finalize" ); } +#endif /* * There shouldn't be any malloc'ed memory after this. */ + TclFinalizePreserve(); #if defined(TCL_THREADS) && defined(USE_THREAD_ALLOC) && !defined(TCL_MEM_DEBUG) && !defined(PURIFY) TclFinalizeThreadAlloc(); #endif |