diff options
author | dgp@users.sourceforge.net <dgp> | 2016-07-21 20:08:50 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2016-07-21 20:08:50 (GMT) |
commit | 8fbd82bba009b51fb595aa19aa8d07eb5353a5a3 (patch) | |
tree | cd7aaee28e7876e8bfdd77e835c534b13cbe5f98 | |
parent | 7f1b491ea67441db7042de9a62f18d53e1d59962 (diff) | |
parent | 39ecf4cec3f87909c3ecbc94428781034aade28f (diff) | |
download | tk-8fbd82bba009b51fb595aa19aa8d07eb5353a5a3.zip tk-8fbd82bba009b51fb595aa19aa8d07eb5353a5a3.tar.gz tk-8fbd82bba009b51fb595aa19aa8d07eb5353a5a3.tar.bz2 |
[450bb0ecad] Fix corruption [tk busy] creates on OSX.
-rw-r--r-- | generic/tkBusy.c | 4 | ||||
-rw-r--r-- | generic/tkWindow.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/tkBusy.c b/generic/tkBusy.c index 65248a2..b36d453 100644 --- a/generic/tkBusy.c +++ b/generic/tkBusy.c @@ -433,6 +433,10 @@ MakeTransparentWindowExist( TkpMakeTransparentWindowExist(tkwin, parent); + if (winPtr->window == None) { + return; /* Platform didn't make Window. */ + } + dispPtr = winPtr->dispPtr; hPtr = Tcl_CreateHashEntry(&dispPtr->winTable, (char *) winPtr->window, ¬Used); diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 7afb031..0c60321 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -2351,6 +2351,9 @@ Tk_IdToWindow( break; } } + if (window == None) { + return NULL; + } hPtr = Tcl_FindHashEntry(&dispPtr->winTable, (char *) window); if (hPtr == NULL) { |