summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-08-26 17:50:33 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2014-08-26 19:47:14 +0900
commit4d32244437475688ca951ce30f8d6fcc59fc1caa (patch)
treef4a613a49fc7d9a790714b6c38ae2fcae979d7b6 /sw/source
parent37b9ea92ba81d74764a2345a9c75c65bfd272d2b (diff)
Avoid possible memory leaks in case of exceptions
Change-Id: Ib4a87cab2729e18b2c830cbd7e7a34d62b5f0f45
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/shells/textidx.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textidx.cxx b/sw/source/uibase/shells/textidx.cxx
index 4cbdb6136b8a..49c806a8819f 100644
--- a/sw/source/uibase/shells/textidx.cxx
+++ b/sw/source/uibase/shells/textidx.cxx
@@ -84,10 +84,9 @@ void SwTextShell::ExecIdx(SfxRequest &rReq)
{ // Several marks, which should it be?
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "Dialog creation failed!");
- VclAbstractDialog* pMultDlg = pFact->CreateMultiTOXMarkDlg(pMDI, aMgr);
+ boost::scoped_ptr<VclAbstractDialog> pMultDlg(pFact->CreateMultiTOXMarkDlg(pMDI, aMgr));
OSL_ENSURE(pMultDlg, "Dialog creation failed!");
nRet = pMultDlg->Execute();
- delete pMultDlg;
}
if( nRet == RET_OK)
{