diff options
author | dgp <dgp@users.sourceforge.net> | 2006-06-09 15:41:29 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-06-09 15:41:29 (GMT) |
commit | e358f96f17ae798226299b0f14611046318d4d32 (patch) | |
tree | ef64ac1e55c8c8d8daccb87a6caf61bfbd779a9e /generic/tkMain.c | |
parent | d280bd0b375975b69c63f4e8b225ee88b3c66b16 (diff) | |
download | tk-e358f96f17ae798226299b0f14611046318d4d32.zip tk-e358f96f17ae798226299b0f14611046318d4d32.tar.gz tk-e358f96f17ae798226299b0f14611046318d4d32.tar.bz2 |
* generic/tkMain.c: Added Tcl_Preserve() call on the master
interp as crash protection against any Tcl_DeleteInterp() call
that might happen.
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r-- | generic/tkMain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c index b6377f6..43bf1bc 100644 --- a/generic/tkMain.c +++ b/generic/tkMain.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMain.c,v 1.15.2.2 2005/10/18 15:16:01 dgp Exp $ + * RCS: @(#) $Id: tkMain.c,v 1.15.2.3 2006/06/09 15:41:29 dgp Exp $ */ #include <ctype.h> @@ -126,6 +126,7 @@ Tk_MainEx(argc, argv, appInitProc, interp) Tcl_FindExecutable(argv[0]); tsdPtr->interp = interp; + Tcl_Preserve((ClientData) interp); #if (defined(__WIN32__) || defined(MAC_TCL)) Tk_InitConsoleChannels(interp); @@ -296,6 +297,7 @@ Tk_MainEx(argc, argv, appInitProc, interp) Tk_MainLoop(); Tcl_DeleteInterp(interp); + Tcl_Release((ClientData) interp); Tcl_Exit(0); } |