mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 07:53:52 +00:00
Avoid leaking an ffmpeg stream
This commit is contained in:
parent
15317796bf
commit
bac6df5563
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ void FFmpeg_Decoder::close()
|
|||
stream->clearPackets();
|
||||
avcodec_close(stream->mCodecCtx);
|
||||
av_free(stream->mDecodedData);
|
||||
delete stream;
|
||||
|
||||
mStreams.erase(mStreams.begin());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue