diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 16:06:10 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-05-17 20:26:17 +0000 |
commit | 4eea91d7a9a90a40839925909c1173b4469e0eb4 (patch) | |
tree | 7553d184ca20a5ba776e565cb0dbede4364f4926 /svtools | |
parent | d758875cd0ea87f8c7bbe1bbb78e49d06254cbee (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
(cherry picked from commit 7d6e159df4c28afde2fff5bd734ec3a8f63cb15a)
Reviewed-on: https://gerrit.libreoffice.org/9383
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
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 966cea87b75f..da793f36cde4 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -366,7 +366,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 |