summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-25 19:59:49 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-26 14:06:40 +0100
commitf0bbafba9d490c2628f1f60070aee877b64f5520 (patch)
treeac569030df1061f8e603cf6aac3738b3c6f91d67 /scripting
parent9aebad8b58a7ee36284e465a40101d2a045d00dd (diff)
Audit all PostUserEvent calls and instrument for VclPtr.
Hold a reference on the VclPtr while we're waiting for the UserEvent. Change-Id: I55c2671ca12eb14761c6a7dffd551af71547ecbd
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/vbaevents/eventhelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx
index 15224d50b84e..616533c6e3dd 100644
--- a/scripting/source/vbaevents/eventhelper.cxx
+++ b/scripting/source/vbaevents/eventhelper.cxx
@@ -706,7 +706,8 @@ EventListener::firing(const ScriptEvent& evt) throw(RuntimeException, std::excep
// needs some logic to check if the event handler is oneway or not
// if not oneway then firing_Impl otherwise... as below
acquire();
- Application::PostUserEvent( LINK( this, EventListener, OnAsyncScriptEvent ), new ScriptEvent( evt ) );
+ Application::PostUserEvent( LINK( this, EventListener, OnAsyncScriptEvent ),
+ new ScriptEvent( evt ) );
#else
firing_Impl( evt );
#endif