summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-30 09:14:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-30 09:15:15 +0100
commit937cbdb579820aa1dd0526682df1ea98a34168c5 (patch)
tree10c5a0fee68b378371729f8fe8be5114e8a61ad3 /sc
parentbfd4234fd863ee75f4f07d9bded061063bbde3d4 (diff)
fix Window::~Window: inconsistency in top window chain leak
Change-Id: I4f32b77a4b107e5315e0c2bc9b20db897135c8b0
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/cellsh2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index fec2ae45347b..e85e36942e11 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -335,8 +335,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
- AbstractScDataFormDlg* pDlg = pFact->CreateScDataFormDlg(
- pTabViewShell->GetDialogParent(), pTabViewShell);
+ std::unique_ptr<AbstractScDataFormDlg> pDlg(pFact->CreateScDataFormDlg(
+ pTabViewShell->GetDialogParent(), pTabViewShell));
OSL_ENSURE(pDlg, "Dialog create fail!");
pDlg->Execute();