summaryrefslogtreecommitdiffstats
path: root/generic/tkPlace.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-03-19 23:36:01 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-03-19 23:36:01 (GMT)
commit278d27a0a645420f41cae22044ccc649cfe35176 (patch)
tree0d4e2699b389edf2d5026baea6b96d103df70eda /generic/tkPlace.c
parentad1bcacba363899b34e3522e366e67f74ed7560d (diff)
parent2ef21d2a470c323fd6ece255ba9213f3c4d156d0 (diff)
downloadtk-278d27a0a645420f41cae22044ccc649cfe35176.zip
tk-278d27a0a645420f41cae22044ccc649cfe35176.tar.gz
tk-278d27a0a645420f41cae22044ccc649cfe35176.tar.bz2
Fix [5412c64a79]: Segmentation fault on closing error report window. This deals with when a canvas embedded window gets destroyed through a binding to <Configure>. Also scheduled idletasks for deleted containers must be canceled.
Diffstat (limited to 'generic/tkPlace.c')
-rw-r--r--generic/tkPlace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkPlace.c b/generic/tkPlace.c
index cc9a650..2eb5bb5 100644
--- a/generic/tkPlace.c
+++ b/generic/tkPlace.c
@@ -425,6 +425,9 @@ static void
FreeContent(
Content *contentPtr)
{
+ if (contentPtr->flags & PARENT_RECONFIG_PENDING) {
+ Tcl_CancelIdleCall(RecomputePlacement, contentPtr);
+ }
Tk_FreeConfigOptions((char *) contentPtr, contentPtr->optionTable,
contentPtr->tkwin);
ckfree(contentPtr);