diff options
Diffstat (limited to 'cui/source/tabpages/page.cxx')
-rw-r--r-- | cui/source/tabpages/page.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 520332ada3e7..c9ecb88fcec0 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -373,8 +373,7 @@ void SvxPageDescPage::dispose() { if(mbDelPrinter) { - delete mpDefPrinter; - mpDefPrinter = NULL; + mpDefPrinter.disposeAndClear(); mbDelPrinter = false; } m_pPaperSizeBox.clear(); |