summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/ViewShellBase.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-29 14:28:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-29 14:36:14 +0200
commit7aa6009a7f7132c80db7bcc4e8291ba4a3296ae5 (patch)
treeadf8d6f4edc25fae20b5d0afe579749823c5cac6 /sd/source/ui/view/ViewShellBase.cxx
parentd3c7c9ea81ee7c617f8cee5b645621088aea215b (diff)
Take care of ~ViewShellBase -> ~FormShellManager -> ViewShellBase::...
...ViewShellBase::GetEventMultiplexer call sequence, where OSL_ASSERT(mpImpl->mpEventMultiplexer.get()!=NULL); would call on an already stale ViewShellBase::mpImpl if ~FromShellManager were only called from within ViewShellBase::~Implementation instead of directly from ~ViewShellBase. (Needed to unbreak <https://gerrit.libreoffice.org/#/c/18890> "boost->std" on Mac OS X, where libc++ presumably nulls a std::unique_ptr early in ~unique_ptr.) Change-Id: I179e0d12cc049f33b5724673b65f84d7f7c3d059
Diffstat (limited to 'sd/source/ui/view/ViewShellBase.cxx')
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 461d9bf05f26..7da0c4c5483a 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -284,6 +284,8 @@ ViewShellBase::~ViewShellBase()
EndListening(*GetDocShell());
SetWindow(NULL);
+
+ mpImpl->mpFormShellManager.reset();
}
void ViewShellBase::LateInit (const OUString& rsDefaultView)