diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-29 10:56:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-12-29 14:22:12 +0100 |
commit | 5c4e96b466e8dc1903d5b24762e8117269e64da7 (patch) | |
tree | cfe52abbbd90e4f70c58f595839c55d51e771d22 /vcl/osx | |
parent | c6e73f3e5bfd5b1cca94f985b5299857d0238ae3 (diff) |
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>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/DragSource.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/osx/DragSource.cxx b/vcl/osx/DragSource.cxx index 11ba53d9ee6c..6203152829eb 100644 --- a/vcl/osx/DragSource.cxx +++ b/vcl/osx/DragSource.cxx @@ -146,6 +146,7 @@ DragSource::DragSource(): mView(nullptr), mpFrame(nullptr), mLastMouseEventBeforeStartDrag(nil), + mDragSourceHelper(nil), m_MouseButton(0) { } |