summaryrefslogtreecommitdiff
path: root/framework/inc/dispatch/closedispatcher.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-06 16:33:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-06 16:33:55 +0200
commitdb06595d13ab00c1c7584456b4bcd85797eadaa9 (patch)
tree67d2e86b570bbc01c7019fe39893fc2ffa2c5e5e /framework/inc/dispatch/closedispatcher.hxx
parent36e22e83a1ca3106d6ef3fbb6ba066a447a65601 (diff)
vcl::EventPoster shall probably be covered by SolarMutex
...as most parts of VCL. Ran across at least one case where a remote call to framework::CloseDispatcher::release -> ~CloseDispatcher -> ~EventPoster -> Application::RemoveUserEvent caused a crash. As always with SolarMutex, keep fingers crossed that this is about the right level to acquire it. Change-Id: I8f4be7329adbf72355774fa5d3c472270da3ddd2
Diffstat (limited to 'framework/inc/dispatch/closedispatcher.hxx')
-rw-r--r--framework/inc/dispatch/closedispatcher.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/inc/dispatch/closedispatcher.hxx b/framework/inc/dispatch/closedispatcher.hxx
index 3c017547a83d..db5f7c3c6dfe 100644
--- a/framework/inc/dispatch/closedispatcher.hxx
+++ b/framework/inc/dispatch/closedispatcher.hxx
@@ -36,6 +36,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/frame/DispatchResultState.hpp>
+#include <boost/scoped_ptr.hpp>
#include <cppuhelper/implbase2.hxx>
#include <vcl/evntpost.hxx>
@@ -88,7 +89,7 @@ class CloseDispatcher : public ::cppu::WeakImplHelper2<
/** @short used for asynchronous callbacks within the main thread.
@descr Internally we work asynchronous. Because our callis
are not aware, that her request can kill its own environment ... */
- ::vcl::EventPoster m_aAsyncCallback;
+ boost::scoped_ptr<vcl::EventPoster> m_aAsyncCallback;
/** @short used inside asyncronous callback to decide,
which operation must be executed. */