summaryrefslogtreecommitdiffstats
path: root/image/decoders
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/decoders
parentc9320b71b333ca3e88b7b6d339c7bfc66afbfba0 (diff)
downloadUXP-05e8038c08e76c021564c0e8e91e6f73aff8b795.tar
UXP-05e8038c08e76c021564c0e8e91e6f73aff8b795.tar.gz
UXP-05e8038c08e76c021564c0e8e91e6f73aff8b795.tar.lz
UXP-05e8038c08e76c021564c0e8e91e6f73aff8b795.tar.xz
UXP-05e8038c08e76c021564c0e8e91e6f73aff8b795.zip
Free the decoded image buffer before deleting the WebP decoder.
This should solve #483.
Diffstat (limited to 'image/decoders')
-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 5da696347..6ed2c3e9c 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;