fix:decoderBuffer内存泄漏

This commit is contained in:
Barry 2019-06-12 07:49:35 +08:00
commit eded0d1f78

View file

@ -382,9 +382,12 @@ runQuit:
if (m_recorder) {
m_recorder->close();
}
if (decoderBuffer) {
av_free(decoderBuffer);
}
if (avioCtx) {
av_freep(&avioCtx);
}
}
if (formatCtx && isFormatCtxOpen) {
avformat_close_input(&formatCtx);
}