[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - svx/source

Julien Nabet serval2412 at yahoo.fr
Mon May 15 21:17:57 UTC 2017


 svx/source/dialog/compressgraphicdialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c41d6c4db6a29fb85b4547b0cf04b3693c472764
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun May 14 00:40:21 2017 +0200

    fix gdi resource leak (svx/compressgraphicdialog)
    
    Change-Id: Iea6e481384cee4d7e2ff6787c64d3048ba9c9d65
    Reviewed-on: https://gerrit.libreoffice.org/37587
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 68a1cb23ede1d4ae6195850190fca6953c30417f)
    Reviewed-on: https://gerrit.libreoffice.org/37592
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index 17a577c91bff..4188b85a79e8 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -184,7 +184,7 @@ void CompressGraphicsDialog::Update()
     const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() );
     sal_Unicode cSeparator = rLocaleWrapper.getNumDecimalSep()[0];
 
-    VclPtr<VirtualDevice> pDummyVDev = VclPtr<VirtualDevice>::Create();
+    ScopedVclPtrInstance<VirtualDevice> pDummyVDev;
     pDummyVDev->EnableOutput( false );
     pDummyVDev->SetMapMode( m_aGraphic.GetPrefMapMode() );
 


More information about the Libreoffice-commits mailing list