diff --git a/apps/openmw/mwsound/ffmpeg_decoder.cpp b/apps/openmw/mwsound/ffmpeg_decoder.cpp index 41859f7fd9..9298bf8488 100644 --- a/apps/openmw/mwsound/ffmpeg_decoder.cpp +++ b/apps/openmw/mwsound/ffmpeg_decoder.cpp @@ -303,6 +303,7 @@ void FFmpeg_Decoder::close() stream->clearPackets(); avcodec_close(stream->mCodecCtx); av_free(stream->mDecodedData); + delete stream; mStreams.erase(mStreams.begin()); }