summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-14 20:59:26 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-14 21:06:47 +0100
commit0a285fad16cac7a6cf06e186c5a844079593e8f7 (patch)
treeff07d79f76d6245e8c1ddc20f7acf3ccb1d0ff23 /sw/source/uibase/misc
parent35237cb348d22c60dbde4b3378f7eab5546631d3 (diff)
Fix redline dialog lifecycle foo.
Change-Id: Idf34e57243b7baba7789fd3d83a2bd7726d3c147
Diffstat (limited to 'sw/source/uibase/misc')
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index c2f616c88ffb..6d69bfaeee0e 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -149,7 +149,7 @@ void SwModelessRedlineAcceptDlg::dispose()
SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer *pBuilder,
vcl::Window *pContentArea, bool bAutoFmt) :
pParentDlg (pParent),
- aTabPagesCTRL (new SvxAcceptChgCtr(pContentArea, pBuilder)),
+ aTabPagesCTRL (VclPtr<SvxAcceptChgCtr>::Create(pContentArea, pBuilder)),
aPopup (SW_RES(MN_REDLINE_POPUP)),
sInserted (SW_RES(STR_REDLINE_INSERTED)),
sDeleted (SW_RES(STR_REDLINE_DELETED)),
@@ -221,6 +221,7 @@ SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer
SwRedlineAcceptDlg::~SwRedlineAcceptDlg()
{
+ aTabPagesCTRL.disposeAndClear();
}
void SwRedlineAcceptDlg::Init(sal_uInt16 nStart)