summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-08 22:09:02 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-08 22:11:39 +0100
commite953cb1a3c2c240a385608658ffc481e33c6854b (patch)
treee6ff5f9f2d23b97811c8a38606df1a822ef66d4e /vcl/source/app/svapp.cxx
parent56e9755d75e5faae9765c3be4b8936e5867cef08 (diff)
Take SolarMutex when pushing app events that need a VclPtr.
Change-Id: Ice91c9e698d99d9674a7c7b3c688faa07603bf95
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r--vcl/source/app/svapp.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 0796ded841de..3a56cd9e6bbc 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -907,6 +907,7 @@ ImplSVEvent * Application::PostUserEvent( const Link<>& rLink, void* pCaller,
pSVEvent->mbCall = true;
if (bReferenceLink)
{
+ SolarMutexGuard aGuard;
// Double check that this is indeed a vcl::Window instance.
assert(dynamic_cast<vcl::Window *>(
static_cast<vcl::Window *>(rLink.GetInstance())) ==