diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-09-30 10:42:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-09-30 10:42:04 +0100 |
commit | efaec7055412420037271ed49b38a10b0a7a2c42 (patch) | |
tree | 937869c044cf1c9d106d23005d5bac2feeef0ef6 | |
parent | e514d2b655bb8e61bc1e8ef763001e6eaf258242 (diff) |
#i102142# Fix the notorious presentation pixmap leak discovered via xresgrindlinux-build-fridrich-20100930
-rwxr-xr-x | sd/source/ui/framework/factories/BasicViewFactory.cxx | 3 | ||||
-rwxr-xr-x | sd/source/ui/framework/factories/BasicViewFactory.hxx | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index d73efd997..c15b9c1a4 100755 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -141,8 +141,9 @@ BasicViewFactory::BasicViewFactory ( mpViewShellContainer(new ViewShellContainer()), mpBase(NULL), mpFrameView(NULL), + mpWindow(new WorkWindow(NULL,WB_STDWORK)), mpViewCache(new ViewCache()), - mxLocalPane(new Pane(Reference<XResourceId>(), new WorkWindow(NULL,WB_STDWORK))) + mxLocalPane(new Pane(Reference<XResourceId>(), mpWindow.get())) { (void)rxContext; } diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx index 34d2e2587..7b03d8567 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<Window> mpWindow; ::boost::shared_ptr<ViewCache> mpViewCache; css::uno::Reference<css::drawing::framework::XPane> mxLocalPane; |