summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-03-23 16:24:24 +0530
committerAndras Timar <andras.timar@collabora.com>2018-03-28 00:05:09 +0200
commit1f592e4eac40f9e1b291fb82fe77c6da31c1ab43 (patch)
tree0f8a37d6d7b3f6a30909ca2a0f8f0d56b7af0e14 /include
parentfd3264a5538af601a965890483d7916b59f36e07 (diff)
lok: don't post events on disposed window
Change-Id: I7721380b1bb6e9ec21338a72523326d0cae6729e Reviewed-on: https://gerrit.libreoffice.org/51777 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit ed4df95f28d4081c8d244dc013fda53cee5f91b7)
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ITiledRenderable.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index b95ac6386829..e25cdd67506a 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -101,6 +101,9 @@ public:
static void LOKPostAsyncEvent(void* pEv, void*)
{
LOKAsyncEventData* pLOKEv = static_cast<LOKAsyncEventData*>(pEv);
+ if (pLOKEv->mpWindow->IsDisposed())
+ return;
+
switch (pLOKEv->mnEvent)
{
case VclEventId::WindowKeyInput: