From 986de6f81092d13e3af41462c631751359e83c2c Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 22 Jun 2002 08:37:25 +0000 Subject: * win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null containerPtr. The core of this bug is likely elsewhere. [Bug #476176] --- win/tkWinEmbed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v0.12