From 1d03c1e653a7aff84097c2dee30b8fd8b091160f Mon Sep 17 00:00:00 2001 From: fvogel Date: Fri, 10 Feb 2023 18:27:59 +0000 Subject: Fix [https://core.tcl-lang.org/tcl/tktview/170551eeffef|170551eeff] (from the Tcl repository): Crash in tk busy forget. --- generic/tkBusy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tkBusy.c b/generic/tkBusy.c index 32db4fc..82b4032 100644 --- a/generic/tkBusy.c +++ b/generic/tkBusy.c @@ -686,8 +686,8 @@ GetBusy( Tcl_HashEntry *hPtr; Tk_Window tkwin; - if (TkGetWindowFromObj(interp, Tk_MainWindow(interp), windowObj, - &tkwin) != TCL_OK) { + tkwin = Tk_MainWindow(interp); + if (!tkwin || (TkGetWindowFromObj(interp, tkwin, windowObj, &tkwin) != TCL_OK)) { return NULL; } hPtr = Tcl_FindHashEntry(busyTablePtr, (char *) tkwin); -- cgit v0.12