[Libreoffice-commits] core.git: sd/source

Michael Meeks michael.meeks at collabora.com
Tue Jul 7 14:31:33 PDT 2015


 sd/source/ui/framework/factories/FullScreenPane.cxx |    7 +++----
 sd/source/ui/presenter/PresenterHelper.cxx          |    4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

New commits:
commit d48353f336890211920fe9b53a538f7b3526c4e1
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Tue Jul 7 22:35:46 2015 +0100

    tdf#91574 - fix slideshow presenter console lifecycle.
    
    Change-Id: I9748579fed8fd4dcf505bc79e48e40c1255bd22e

diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx
index ef6c050..731de22 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;
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx
index 390ea2b..c6ea5e0 100644
--- a/sd/source/ui/presenter/PresenterHelper.cxx
+++ b/sd/source/ui/presenter/PresenterHelper.cxx
@@ -73,10 +73,10 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow (
     sal_Bool bEnableParentClip)
     throw (css::uno::RuntimeException, std::exception)
 {
-    vcl::Window* pParentWindow = VCLUnoHelper::GetWindow(rxParentWindow);
+    VclPtr<vcl::Window> pParentWindow(VCLUnoHelper::GetWindow(rxParentWindow));
 
     // Create a new window.
-    vcl::Window* pWindow = NULL;
+    VclPtr<vcl::Window> pWindow;
     if (bCreateSystemChildWindow)
     {
         pWindow = VclPtr<WorkWindow>::Create(pParentWindow, WB_SYSTEMCHILDWINDOW);


More information about the Libreoffice-commits mailing list