From a800b0d9fdf41cf11f8dbd91ff04321190bf289d Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Wed, 14 Jul 2010 13:48:47 +0200 Subject: [PATCH] impress195: #i102142# Stop leaking windows. --- sd/source/ui/framework/factories/BasicViewFactory.cxx | 3 ++- sd/source/ui/framework/factories/BasicViewFactory.hxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 1320df5c827b..44f92622a38d 100755 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -142,7 +142,8 @@ BasicViewFactory::BasicViewFactory ( mpBase(NULL), mpFrameView(NULL), mpViewCache(new ViewCache()), - mxLocalPane(new Pane(Reference(), new WorkWindow(NULL,WB_STDWORK))) + mpWindow(new WorkWindow(NULL,WB_STDWORK)), + mxLocalPane(new Pane(Reference(), mpWindow.get())) { (void)rxContext; } diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx index e5bb43551a24..74bb04de36e3 100755 --- a/sd/source/ui/framework/factories/BasicViewFactory.hxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx @@ -119,6 +119,7 @@ private: FrameView* mpFrameView; class ViewCache; + ::boost::shared_ptr mpWindow; ::boost::shared_ptr mpViewCache; css::uno::Reference mxLocalPane;