afl-eventtesting: crash if you close shell behind running presentation

Change-Id: Ib8f02ddfe3b74e97145e22aa88e6f97d52c39f7a
This commit is contained in:
Caolán McNamara
2015-10-21 16:47:33 +01:00
parent f4294091b9
commit fb5b2c5580
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include "app.hrc"
#include "strings.hrc"
#include "glob.hrc"
#include "slideshow.hxx"
#include "unokywds.hxx"
#include <svx/svxids.hrc>
#include "DrawDocShell.hxx"
@@ -263,6 +264,11 @@ ViewShellBase::ViewShellBase (
*/
ViewShellBase::~ViewShellBase()
{
rtl::Reference<SlideShow> xSlideShow(SlideShow::GetSlideShow(*this));
if (xSlideShow.is() && xSlideShow->dependsOn(this))
SlideShow::Stop(*this);
xSlideShow.clear();
// Tell the controller that the ViewShellBase is not available anymore.
if (mpImpl->mpController.get() != NULL)
mpImpl->mpController->ReleaseViewShellBase();

Binary file not shown.