Fix another FrameData leak (Bug 463358). Fixes intermittent orange.

This commit is contained in:
Chris Double 2009-05-21 03:17:21 +12:00
Родитель 1c0e5b31d4
Коммит 2ad9f5251f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1514,8 +1514,10 @@ nsresult nsOggDecodeStateMachine::Run()
frame = NextFrame();
} while (frame && frame->mDecodedFrameTime < seekTarget);
if (mState == DECODER_STATE_SHUTDOWN)
if (mState == DECODER_STATE_SHUTDOWN) {
delete frame;
continue;
}
NS_ASSERTION(frame != nsnull, "No frame after seek!");
if (frame) {