[Libreoffice-commits] core.git: svx/source

Julien Nabet serval2412 at yahoo.fr
Sun May 14 07:03:55 UTC 2017


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

New commits:
commit 68a1cb23ede1d4ae6195850190fca6953c30417f
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>

diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index a622c0a079f2..fb5c545ad4ec 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -187,7 +187,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