summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-07-07 22:35:46 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-07-07 22:39:52 +0100
commitd48353f336890211920fe9b53a538f7b3526c4e1 (patch)
treec0587e6cf38f8a492adb1ae0b5ae1963b033f0fb /sd/source/ui/framework
parent5d19f90eb247275420a6774403cb77940ac6131b (diff)
tdf#91574 - fix slideshow presenter console lifecycle.
Change-Id: I9748579fed8fd4dcf505bc79e48e40c1255bd22e
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/factories/FullScreenPane.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx
index ef6c05019f79..731de222bc6b 100644
--- a/sd/source/ui/framework/factories/FullScreenPane.cxx
+++ b/sd/source/ui/framework/factories/FullScreenPane.cxx
@@ -42,8 +42,7 @@ FullScreenPane::FullScreenPane (
const Reference<XResourceId>& rxPaneId,
const vcl::Window* pViewShellWindow)
: FrameWindowPane(rxPaneId,NULL),
- mxComponentContext(rxComponentContext),
- mpWorkWindow(NULL)
+ mxComponentContext(rxComponentContext)
{
vcl::Window* pParent = NULL;
mpWorkWindow.reset(VclPtr<WorkWindow>::Create(
@@ -110,7 +109,7 @@ void SAL_CALL FullScreenPane::disposing()
{
Link<> aWindowEventHandler (LINK(this, FullScreenPane, WindowEventHandler));
mpWorkWindow->RemoveEventListener(aWindowEventHandler);
- mpWorkWindow.reset();
+ mpWorkWindow.disposeAndClear();
}
FrameWindowPane::disposing();
@@ -186,7 +185,7 @@ IMPL_LINK(FullScreenPane, WindowEventHandler, VclWindowEvent*, pEvent)
break;
case VCLEVENT_OBJECT_DYING:
- mpWorkWindow.reset();
+ mpWorkWindow.disposeAndClear();
break;
}
return 1;