sc/source/ui/docshell/arealink.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dc2a2bd172762e95ebc66d58ba04b2071d00d0b1
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Jan 12 10:48:59 2018 +0000

    VclPtr, missing dispose
    
    Change-Id: I790cd8be0d461d4c82c9b1c64e334bd37115dcaf
    Reviewed-on: https://gerrit.libreoffice.org/47802
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/ui/docshell/arealink.cxx 
b/sc/source/ui/docshell/arealink.cxx
index 95fc79d8ed01..ce6ba04c5e8d 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -88,7 +88,7 @@ void ScAreaLink::Edit(vcl::Window* pParent, const 
Link<SvBaseLink&,void>& /* rEn
     ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
     OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
 
-    VclPtr<AbstractScLinkedAreaDlg> pDlg = 
pFact->CreateScLinkedAreaDlg(pParent);
+    ScopedVclPtr<AbstractScLinkedAreaDlg> 
pDlg(pFact->CreateScLinkedAreaDlg(pParent));
     OSL_ENSURE(pDlg, "Dialog create fail!");
     pDlg->InitFromOldLink( aFileName, aFilterName, aOptions, aSourceArea, 
GetRefreshDelay() );
     pImpl->m_pDialog = pDlg;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to