[Libreoffice-commits] .: svtools/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Wed Jul 6 09:06:18 PDT 2011


 svtools/source/graphic/grfcache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9cf5044e1cbd75c6433791525e5532658a89bb99
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Wed Jul 6 18:05:48 2011 +0200

    Fixed a crash: GDIMetafile was deleted twice

diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index ecb136d..97ca4dc 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -371,7 +371,7 @@ void GraphicCacheEntry::GraphicObjectWasSwappedOut( const GraphicObject& /*rObj*
     if( mbSwappedAll )
     {
         delete mpBmpEx, mpBmpEx = NULL;
-        delete mpMtf, mpMtf = NULL;
+        mpMtf = NULL; // No need to delete it as it has already been dereferenced
         delete mpAnimation, mpAnimation = NULL;
     }
 }


More information about the Libreoffice-commits mailing list