From 9ddd72d5fb7e050ceacbb03b2b3ab4a6bc01d40e Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 26 Feb 2000 03:11:07 +0000 Subject: * win/tkWinWm.c (RaiseWinWhenIdle): Checked for the possibility that the window could be destroyed (can occur with wm deiconify .toplevel; destroy .toplevel). --- win/tkWinWm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win/tkWinWm.c b/win/tkWinWm.c index e9a117a..2b1da14 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.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: tkWinWm.c,v 1.20 2000/02/01 11:41:44 hobbs Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.21 2000/02/26 03:11:07 hobbs Exp $ */ #include "tkWinInt.h" @@ -4550,6 +4550,9 @@ RaiseWinWhenIdle(clientData) { register TkWindow *winPtr = (TkWindow *) clientData; + if ((winPtr == NULL) || (winPtr->flags & TK_ALREADY_DEAD)) { + return; + } if (winPtr->wmInfoPtr->flags & WM_UPDATE_PENDING) { Tcl_CancelIdleCall(UpdateGeometryInfo, (ClientData) winPtr); UpdateGeometryInfo((ClientData) winPtr); -- cgit v0.12