From d4ec5ef31f8afdaa25c2eb1f8bd326f2dbdcf9bb Mon Sep 17 00:00:00 2001 From: "jdrew%mozilla.com" Date: Tue, 22 Sep 2009 18:37:21 +0000 Subject: [PATCH] Bug 472590 - Always call OnStopFrame() from the GIF decoder, even if we didn't decode any rows (due to an invalid GIF). r=vlad git-svn-id: svn://10.0.0.236/trunk@258463 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp index 9026b3b677b..58dcb225019 100644 --- a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp +++ b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp @@ -408,11 +408,11 @@ void nsGIFDecoder2::EndImageFrame() mImageContainer->AppendFrame(mImageFrame); mImageContainer->EndFrameDecode(mGIFStruct.images_decoded, mGIFStruct.delay_time); mGIFStruct.images_decoded++; - - if (mObserver) - mObserver->OnStopFrame(nsnull, mImageFrame); } + if (mObserver) + mObserver->OnStopFrame(nsnull, mImageFrame); + // Release reference to this frame mImageFrame = nsnull;