diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-20 23:08:41 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:06:13 +0100 |
commit | c612c3b0aed9ad7f7f42b4313f821b71995ead15 (patch) | |
tree | f6c673bccab1a0a6391315fde5966541eaf55d96 /sw/source/uibase/uno | |
parent | a8dc965511f5f8e276eb4797ac0c37479907a079 (diff) |
protect more printer code-paths.
Change-Id: Ic5bc5c3325b460cba0d95484454c9bb826684890
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/SwXDocumentSettings.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/SwXDocumentSettings.cxx b/sw/source/uibase/uno/SwXDocumentSettings.cxx index ce19d650523b..6b947227cf77 100644 --- a/sw/source/uibase/uno/SwXDocumentSettings.cxx +++ b/sw/source/uibase/uno/SwXDocumentSettings.cxx @@ -425,7 +425,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf 0 }; SfxItemSet *pItemSet = new SfxItemSet( mpDoc->GetAttrPool(), nRange ); - SfxPrinter *pPrinter = SfxPrinter::Create ( aStream, pItemSet ); + VclPtr<SfxPrinter> pPrinter = SfxPrinter::Create ( aStream, pItemSet ); // set printer only once; in _postSetValues mpPrinter.disposeAndClear(); |