[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Thu Jun 30 08:15:41 UTC 2016
sc/source/ui/view/cellsh2.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 937cbdb579820aa1dd0526682df1ea98a34168c5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jun 30 09:14:05 2016 +0100
fix Window::~Window: inconsistency in top window chain leak
Change-Id: I4f32b77a4b107e5315e0c2bc9b20db897135c8b0
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index fec2ae4..e85e369 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();
More information about the Libreoffice-commits
mailing list