diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 16:06:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 21:05:01 +0100 |
commit | 7d6e159df4c28afde2fff5bd734ec3a8f63cb15a (patch) | |
tree | 3b6f4773dc231346f1651763c040c15bede7b12f /svtools | |
parent | 821c42b10a7095124a9afbbba3f9bc687ace40e6 (diff) |
fix memory leak on pasting metafiles into writer
copying from mspaint to writer and then deleting the image in a loop will
eventually exhaust all memory.
regression since 004a29b9ac66f68af5ea12a2303a4b2be77d8145
Change-Id: I381285cda3823de7df0c1725a339943caf9536fe
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index 26d766af354c..72fdc3a6ec9a 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -367,7 +367,7 @@ void GraphicCacheEntry::GraphicObjectWasSwappedOut( const GraphicObject& /*rObj* if( mbSwappedAll ) { delete mpBmpEx, mpBmpEx = NULL; - mpMtf = NULL; // No need to delete it as it has already been dereferenced + delete mpMtf, mpMtf = NULL; delete mpAnimation, mpAnimation = NULL; // #119176# also reset SvgData |