summaryrefslogtreecommitdiff
path: root/include/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-14 13:03:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-14 18:34:47 +0200
commitec996f7fc26601a6b5bf2ea12890316905662e40 (patch)
tree7202a90bc67ce9e2a7d736237697d43d15ffff9f /include/toolkit
parentd8b0cae3b23a6a8b0c884f6022cedaa7270f50cc (diff)
tdf#142255 Crash when trying to insert a shape
regression from commit 5aa60be574ece81b27c8f63e6e809871c694dba0 fix leak in VCLXWindow it's too dangerous to dump the Impl during dispose(), because if I do, the Impl is removed while we are iterating over listeners. So just be check mbIsDisposing more heavily to prevent new references to the VCLXWindow being added after it is disposed. Change-Id: Ibb00a289440d24f531072ef5809613d5e8a0a98f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115598 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/toolkit')
-rw-r--r--include/toolkit/awt/vclxwindow.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/toolkit/awt/vclxwindow.hxx b/include/toolkit/awt/vclxwindow.hxx
index 289d242a297b..5e5ac617a26a 100644
--- a/include/toolkit/awt/vclxwindow.hxx
+++ b/include/toolkit/awt/vclxwindow.hxx
@@ -133,6 +133,8 @@ public:
void notifyWindowRemoved( vcl::Window const & _rWindow );
+ bool IsDisposed();
+
// css::lang::XUnoTunnel
UNO3_GETIMPLEMENTATION_DECL(VCLXWindow)