diff options
author | fvogel <fvogelnew1@free.fr> | 2022-03-19 23:36:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2022-03-19 23:36:01 (GMT) |
commit | 278d27a0a645420f41cae22044ccc649cfe35176 (patch) | |
tree | 0d4e2699b389edf2d5026baea6b96d103df70eda /generic/tkPack.c | |
parent | ad1bcacba363899b34e3522e366e67f74ed7560d (diff) | |
parent | 2ef21d2a470c323fd6ece255ba9213f3c4d156d0 (diff) | |
download | tk-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/tkPack.c')
-rw-r--r-- | generic/tkPack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkPack.c b/generic/tkPack.c index dd8977c..ffb24f0 100644 --- a/generic/tkPack.c +++ b/generic/tkPack.c @@ -1408,6 +1408,9 @@ DestroyPacker( { Packer *packPtr = (Packer *)memPtr; + if (packPtr->flags & REQUESTED_REPACK) { + Tcl_CancelIdleCall(ArrangePacking, packPtr); + } ckfree(packPtr); } |