From 2255f9252214a3502bf23dee00ac110c2346ff3a Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 13 Jun 2018 13:45:56 +0200 Subject: Free the decoded image buffer before deleting the WebP decoder. This should solve #483. --- image/decoders/nsWebPDecoder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'image') 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; -- cgit v1.2.3