Free the decoded image buffer before deleting the WebP decoder.

This should solve #483.
This commit is contained in:
wolfbeast 2018-06-13 13:45:56 +02:00 committed by Roy Tam
commit ee622ef7cc

View file

@ -119,6 +119,7 @@ nsWebPDecoder::EndFrame()
mTimeout.AsEncodedValueDeprecated(), (int)mBlend));
PostFrameStop(opacity, mDisposal, mTimeout, mBlend);
WebPFreeDecBuffer(&mBuffer);
WebPIDelete(mDecoder);
mDecoder = nullptr;
mLastRow = 0;