Kaydet (Commit) 5c4e96b4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Initialize DragSource::mDragSourceHelper

At least during CppunitTest_basctl_dialogs_test, DragSource::initialize
apparently throws an exception before initializing mDragSourceHelper, so that

    [mDragSourceHelper release];

in ~DragSource may cause a crash.

Change-Id: Ic11b5d7a1dbfd5636d6f25b30b509d0d8a381262
Reviewed-on: https://gerrit.libreoffice.org/65702
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst c6e73f3e
...@@ -146,6 +146,7 @@ DragSource::DragSource(): ...@@ -146,6 +146,7 @@ DragSource::DragSource():
mView(nullptr), mView(nullptr),
mpFrame(nullptr), mpFrame(nullptr),
mLastMouseEventBeforeStartDrag(nil), mLastMouseEventBeforeStartDrag(nil),
mDragSourceHelper(nil),
m_MouseButton(0) m_MouseButton(0)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment