diff options
Diffstat (limited to 'framework/source/helper/vclstatusindicator.cxx')
-rw-r--r-- | framework/source/helper/vclstatusindicator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/helper/vclstatusindicator.cxx b/framework/source/helper/vclstatusindicator.cxx index e02c4e747ca9..18f08294d489 100644 --- a/framework/source/helper/vclstatusindicator.cxx +++ b/framework/source/helper/vclstatusindicator.cxx @@ -48,7 +48,7 @@ void SAL_CALL VCLStatusIndicator::start(const OUString& sText , vcl::Window* pParentWindow = VCLUnoHelper::GetWindow(m_xParentWindow); if (!m_pStatusBar) - m_pStatusBar = new StatusBar(pParentWindow, WB_3DLOOK|WB_BORDER); + m_pStatusBar = VclPtr<StatusBar>::Create(pParentWindow, WB_3DLOOK|WB_BORDER); VCLStatusIndicator::impl_recalcLayout(m_pStatusBar, pParentWindow); @@ -91,8 +91,7 @@ void SAL_CALL VCLStatusIndicator::end() m_pStatusBar->EndProgressMode(); m_pStatusBar->Show(false); - delete m_pStatusBar; - m_pStatusBar = 0; + m_pStatusBar.disposeAndClear(); } } |