summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-07-06 18:05:48 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-07-06 18:05:48 +0200
commit004a29b9ac66f68af5ea12a2303a4b2be77d8145 (patch)
tree99930e27d04172fff162bde45c67cede6d7746bc /svtools
parentbac1a3ff168afc98a1a20b69256c8a89ee7ee581 (diff)
Fixed a crash: GDIMetafile was deleted twice
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfcache.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}
}