diff options
author | hobbs <hobbs@noemail.net> | 2002-06-22 08:37:24 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-06-22 08:37:24 (GMT) |
commit | e45ea9c154ae436b2e443a8d0eeec7e5bbd190f2 (patch) | |
tree | 7f5dea15277d6f678060d6862b7fd77fab174344 /win | |
parent | 24e16a87a19b9c4b41c95e20db81289252100425 (diff) | |
download | tk-e45ea9c154ae436b2e443a8d0eeec7e5bbd190f2.zip tk-e45ea9c154ae436b2e443a8d0eeec7e5bbd190f2.tar.gz tk-e45ea9c154ae436b2e443a8d0eeec7e5bbd190f2.tar.bz2 |
* win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
containerPtr. The core of this bug is likely elsewhere. [Bug #476176]
FossilOrigin-Name: 8d0dc1e2c91503bf6619dac57f3a3ecb2b3fd893
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinEmbed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c index 0c3f33a..74d2240 100644 --- a/win/tkWinEmbed.c +++ b/win/tkWinEmbed.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: tkWinEmbed.c,v 1.5 2002/05/27 17:33:26 mdejong Exp $ + * RCS: @(#) $Id: tkWinEmbed.c,v 1.6 2002/06/22 08:37:25 hobbs Exp $ */ #include "tkWinInt.h" @@ -638,10 +638,12 @@ EmbedWindowDeleted(winPtr) * Find the Container structure for this window work. Delete the * information about the embedded application and free the container's * record. + * The main container may be null. [Bug #476176] */ prevPtr = NULL; containerPtr = tsdPtr->firstContainerPtr; + if (containerPtr == NULL) return; while (1) { if (containerPtr->embeddedPtr == winPtr) { containerPtr->embeddedHWnd = NULL; |