diff options
author | hobbs <hobbs@noemail.net> | 2006-03-30 01:39:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-03-30 01:39:07 (GMT) |
commit | 5f6915716947d9aa6333482e650ae746f974f242 (patch) | |
tree | a0b19779076c640f08b907c87a0a4fc7596e05b1 /generic/tkOption.c | |
parent | 24c84d3129a51d95633b5e660ad1a7b76ed0eff4 (diff) | |
download | tk-5f6915716947d9aa6333482e650ae746f974f242.zip tk-5f6915716947d9aa6333482e650ae746f974f242.tar.gz tk-5f6915716947d9aa6333482e650ae746f974f242.tar.bz2 |
* generic/tkOption.c (TkOptionDeadWindow): handle
OptionThreadExitProc being called before DeleteWindowsExitProc.
FossilOrigin-Name: a98f7e01bac0522d6237ffbbaa4f265998c23161
Diffstat (limited to 'generic/tkOption.c')
-rw-r--r-- | generic/tkOption.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c index 6e521ce..1a7cb04 100644 --- a/generic/tkOption.c +++ b/generic/tkOption.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: tkOption.c,v 1.17 2005/11/17 10:57:35 dkf Exp $ + * RCS: @(#) $Id: tkOption.c,v 1.18 2006/03/30 01:39:07 hobbs Exp $ */ #include "tkPort.h" @@ -748,9 +748,13 @@ TkOptionDeadWindow( /* * If this window is in the option stacks, then clear the stacks. + * + * XXX: OptionThreadExitProc will be invoked before DeleteWindowsExitProc + * XXX: if it is thread-specific (which it should be), invalidating the + * XXX: tsd. Tk shutdown needs to be verified to handle this correctly. */ - if (winPtr->optionLevel != -1) { + if (tsdPtr->initialized && (winPtr->optionLevel != -1)) { int i; for (i = 1; i <= tsdPtr->curLevel; i++) { |