summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc/glshell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/misc/glshell.cxx')
-rw-r--r--sw/source/uibase/misc/glshell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/misc/glshell.cxx b/sw/source/uibase/misc/glshell.cxx
index f973411b850f..0a0f9f6c33d5 100644
--- a/sw/source/uibase/misc/glshell.cxx
+++ b/sw/source/uibase/misc/glshell.cxx
@@ -248,7 +248,7 @@ SwDocShellRef SwGlossaries::EditGroupDoc( const OUString& rGroup, const OUString
SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
0 );
- SfxPrinter* pPrinter = new SfxPrinter( pSet );
+ VclPtr<SfxPrinter> pPrinter = VclPtr<SfxPrinter>::Create( pSet );
// and append it to the document.
xDocSh->GetDoc()->getIDocumentDeviceAccess().setPrinter( pPrinter, true, true );