sw_engine image: fix memory leak.

reset rle is supposed to be reused, image should keep its pointer.

@Issue: https://github.com/Samsung/thorvg/issues/982
This commit is contained in:
Hermet Park 2021-11-02 18:42:16 +09:00 committed by Hermet Park
parent 7176a5ddd4
commit 3b54e4797e

View file

@ -97,7 +97,6 @@ void imageDelOutline(SwImage* image, SwMpool* mpool, uint32_t tid)
void imageReset(SwImage* image)
{
rleReset(image->rle);
image->rle = nullptr;
}