summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-09-16 22:36:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-09-16 22:36:20 (GMT)
commit0ea7d71c4905741e8b990a41ac36ab8a762d9ac5 (patch)
tree8aaf9e7a4fda4ee1c540fcfbe10e3db2a819a7a9 /macosx/tkMacOSXWm.c
parent6d8383d0d6757ecd4ed865447bfa551690ed7323 (diff)
downloadtk-0ea7d71c4905741e8b990a41ac36ab8a762d9ac5.zip
tk-0ea7d71c4905741e8b990a41ac36ab8a762d9ac5.tar.gz
tk-0ea7d71c4905741e8b990a41ac36ab8a762d9ac5.tar.bz2
Updated branch now stops all segfaults and panics in the test suite.bug_3567786
Not a lot of confidence that other problems haven't been created, including memleaks and broken functionality in areas. A review would be a good idea. So would a trunk that doesn't segfault the test suite.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index f5aefef..3a1da10 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -1649,7 +1649,12 @@ WmForgetCmd(
register Tk_Window frameWin = (Tk_Window) winPtr;
if (Tk_IsTopLevel(frameWin)) {
- MacDrawable *macWin = (MacDrawable *) winPtr->window;
+ MacDrawable *macWin;
+
+ Tk_MakeWindowExist(winPtr);
+ Tk_MakeWindowExist(winPtr->parentPtr);
+
+ macWin = (MacDrawable *) winPtr->window;
TkFocusJoin(winPtr);
Tk_UnmapWindow(frameWin);