summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/plugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/plugin.cxx')
-rw-r--r--sfx2/source/doc/plugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/plugin.cxx b/sfx2/source/doc/plugin.cxx
index ca30f4563093..7c5d7157607a 100644
--- a/sfx2/source/doc/plugin.cxx
+++ b/sfx2/source/doc/plugin.cxx
@@ -152,7 +152,7 @@ throw( uno::RuntimeException, std::exception )
if ( SvtMiscOptions().IsPluginsEnabled() )
{
vcl::Window* pParent = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() );
- PluginWindow_Impl* pWin = new PluginWindow_Impl( pParent );
+ VclPtr<PluginWindow_Impl> pWin = VclPtr<PluginWindow_Impl>::Create( pParent );
pWin->SetSizePixel( pParent->GetOutputSizePixel() );
pWin->SetBackground();
pWin->Show();