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: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2018-12-29 14:22:12 +01:00
parent c6e73f3e5b
commit 5c4e96b466
+1
View File
@@ -146,6 +146,7 @@ DragSource::DragSource():
mView(nullptr),
mpFrame(nullptr),
mLastMouseEventBeforeStartDrag(nil),
mDragSourceHelper(nil),
m_MouseButton(0)
{
}