mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-26 02:38:04 +00:00
Avoid leaking an ffmpeg stream
This commit is contained in:
parent
15317796bf
commit
bac6df5563
@ -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…
x
Reference in New Issue
Block a user