summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-06-22 08:37:25 (GMT)
committerhobbs <hobbs>2002-06-22 08:37:25 (GMT)
commit2fd64ab86c535b3267fa46d177ccb2a55e5ae687 (patch)
tree7f5dea15277d6f678060d6862b7fd77fab174344 /win
parent49337e7328a834fc1ff7625cc8619e6d80d30070 (diff)
downloadtk-2fd64ab86c535b3267fa46d177ccb2a55e5ae687.zip
tk-2fd64ab86c535b3267fa46d177ccb2a55e5ae687.tar.gz
tk-2fd64ab86c535b3267fa46d177ccb2a55e5ae687.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')
-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;