mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 04:45:34 +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();
|
stream->clearPackets();
|
||||||
avcodec_close(stream->mCodecCtx);
|
avcodec_close(stream->mCodecCtx);
|
||||||
av_free(stream->mDecodedData);
|
av_free(stream->mDecodedData);
|
||||||
|
delete stream;
|
||||||
|
|
||||||
mStreams.erase(mStreams.begin());
|
mStreams.erase(mStreams.begin());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue