summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-13 13:45:56 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-13 13:45:56 +0200
commit05e8038c08e76c021564c0e8e91e6f73aff8b795 (patch)
tree4dffeb7a2f378e07fd686dcbabb1fc57ba7c3adb /image
parentc9320b71b333ca3e88b7b6d339c7bfc66afbfba0 (diff)
downloaduxp-05e8038c08e76c021564c0e8e91e6f73aff8b795.tar.gz
Free the decoded image buffer before deleting the WebP decoder.
This should solve #483.
Diffstat (limited to 'image')
-rw-r--r--image/decoders/nsWebPDecoder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/image/decoders/nsWebPDecoder.cpp b/image/decoders/nsWebPDecoder.cpp
index 5da696347c..6ed2c3e9cd 100644
--- a/image/decoders/nsWebPDecoder.cpp
+++ b/image/decoders/nsWebPDecoder.cpp
@@ -119,6 +119,7 @@ nsWebPDecoder::EndFrame()
mTimeout.AsEncodedValueDeprecated(), (int)mBlend));
PostFrameStop(opacity, mDisposal, mTimeout, mBlend);
+ WebPFreeDecBuffer(&mBuffer);
WebPIDelete(mDecoder);
mDecoder = nullptr;
mLastRow = 0;