From 004a29b9ac66f68af5ea12a2303a4b2be77d8145 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Wed, 6 Jul 2011 18:05:48 +0200 Subject: Fixed a crash: GDIMetafile was deleted twice --- svtools/source/graphic/grfcache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools') diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index df7bfa9f88b1..47de44d7695c 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; } } -- cgit