diff options
author | dgp@users.sourceforge.net <dgp> | 2016-07-22 12:40:27 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2016-07-22 12:40:27 (GMT) |
commit | 93801c51fdca685b32ff3980e0a4fecb9506af64 (patch) | |
tree | 1e81feb5f2ee8f3e2b8d450e3583186352a5d283 | |
parent | 4c3c83b9a8d36ac8583901a06263ef0a140b5c88 (diff) | |
parent | 8fbd82bba009b51fb595aa19aa8d07eb5353a5a3 (diff) | |
download | tk-93801c51fdca685b32ff3980e0a4fecb9506af64.zip tk-93801c51fdca685b32ff3980e0a4fecb9506af64.tar.gz tk-93801c51fdca685b32ff3980e0a4fecb9506af64.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 81ea0e5..a55c867 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -2358,6 +2358,9 @@ Tk_IdToWindow( break; } } + if (window == None) { + return NULL; + } hPtr = Tcl_FindHashEntry(&dispPtr->winTable, (char *) window); if (hPtr == NULL) { |