diff options
author | Kevin B Kenny <kennykb@acm.org> | 2005-06-24 18:21:36 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2005-06-24 18:21:36 (GMT) |
commit | 59a6d33cced0379c77fe74ddfe007f79ca0c0f40 (patch) | |
tree | e61562eda7d9ce59a92bc8c1e14fda5f852ffe6d /generic/tclEvent.c | |
parent | 398b7259c8c32271fc056be36fa16930498ca341 (diff) | |
download | tcl-59a6d33cced0379c77fe74ddfe007f79ca0c0f40.zip tcl-59a6d33cced0379c77fe74ddfe007f79ca0c0f40.tar.gz tcl-59a6d33cced0379c77fe74ddfe007f79ca0c0f40.tar.bz2 |
finalize Tcl_Preserve after exit handlers
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 |