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
This commit is contained in:
parent
821c42b10a
commit
7d6e159df4
@ -367,7 +367,7 @@ void GraphicCacheEntry::GraphicObjectWasSwappedOut( const GraphicObject& /*rObj*
|
|||||||
if( mbSwappedAll )
|
if( mbSwappedAll )
|
||||||
{
|
{
|
||||||
delete mpBmpEx, mpBmpEx = NULL;
|
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;
|
delete mpAnimation, mpAnimation = NULL;
|
||||||
|
|
||||||
// #119176# also reset SvgData
|
// #119176# also reset SvgData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user