From 05e8038c08e76c021564c0e8e91e6f73aff8b795 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 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; -- cgit v1.2.3