summaryrefslogtreecommitdiffstats
path: root/svx/source/sidebar/PanelLayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sidebar/PanelLayout.cxx')
-rw-r--r--svx/source/sidebar/PanelLayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx
index 74451ec9378e..fd8e07538c93 100644
--- a/svx/source/sidebar/PanelLayout.cxx
+++ b/svx/source/sidebar/PanelLayout.cxx
@@ -24,7 +24,7 @@ PanelLayout::PanelLayout(vcl::Window* pParent, const OString& rID, const OUStrin
, m_bInClose(false)
{
SetStyle(GetStyle() | WB_DIALOGCONTROL);
- m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame);
+ m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame));
m_aPanelLayoutIdle.SetPriority(SchedulerPriority::RESIZE);
m_aPanelLayoutIdle.SetIdleHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) );
if (GetSettings().GetStyleSettings().GetAutoMnemonic())