diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-13 13:45:56 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-13 13:45:56 +0200 |
commit | 05e8038c08e76c021564c0e8e91e6f73aff8b795 (patch) | |
tree | 4dffeb7a2f378e07fd686dcbabb1fc57ba7c3adb /image | |
parent | c9320b71b333ca3e88b7b6d339c7bfc66afbfba0 (diff) | |
download | uxp-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.cpp | 1 |
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; |