diff options
author | dgp@users.sourceforge.net <dgp> | 2012-09-16 22:36:20 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-09-16 22:36:20 (GMT) |
commit | ddcb0f0761d0ba5dbd53598fbd6938f884da264d (patch) | |
tree | 8aaf9e7a4fda4ee1c540fcfbe10e3db2a819a7a9 /macosx | |
parent | a763cdb43d1c2ec6b6c8e66cb6bf8edf3d818b9e (diff) | |
download | tk-ddcb0f0761d0ba5dbd53598fbd6938f884da264d.zip tk-ddcb0f0761d0ba5dbd53598fbd6938f884da264d.tar.gz tk-ddcb0f0761d0ba5dbd53598fbd6938f884da264d.tar.bz2 |
Updated branch now stops all segfaults and panics in the test suite.
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')
-rw-r--r-- | macosx/tkMacOSXWm.c | 7 |
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); |