summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-06-22 08:37:25 (GMT)
committerhobbs <hobbs>2002-06-22 08:37:25 (GMT)
commit986de6f81092d13e3af41462c631751359e83c2c (patch)
tree7f5dea15277d6f678060d6862b7fd77fab174344 /win/tkWinEmbed.c
parentb6d96bd6a4e4dc5169639b2d2c25c00cbcd629c3 (diff)
downloadtk-986de6f81092d13e3af41462c631751359e83c2c.zip
tk-986de6f81092d13e3af41462c631751359e83c2c.tar.gz
tk-986de6f81092d13e3af41462c631751359e83c2c.tar.bz2
* win/tkWinEmbed.c (EmbedWindowDeleted): added a check for a null
containerPtr. The core of this bug is likely elsewhere. [Bug #476176]
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c4
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;