Bug 857623 - Ensure we always call PostFrameStop before PostDecodeDone in nsGIFDecoder2.cpp. r=tn

This commit is contained in:
Seth Fowler 2013-04-05 18:02:39 -07:00
parent 785f24e28f
commit f9d0108ed6

View File

@ -1035,8 +1035,8 @@ nsGIFDecoder2::WriteInternal(const char *aBuffer, uint32_t aCount)
break;
case gif_done:
PostDecodeDone(mGIFStruct.loop_count - 1);
mGIFOpen = false;
MOZ_ASSERT(!IsSizeDecode(), "Size decodes shouldn't reach gif_done");
FinishInternal();
goto done;
case gif_error: