fix:decoder内存泄漏

dev
Barry 7 years ago
parent 97f7935904
commit e4b3fb76d9

@ -412,10 +412,8 @@ runQuit:
if (m_recorder) { if (m_recorder) {
m_recorder->close(); m_recorder->close();
} }
if (decoderBuffer) {
av_free(decoderBuffer);
}
if (avioCtx) { if (avioCtx) {
av_free(avioCtx->buffer);
av_freep(&avioCtx); av_freep(&avioCtx);
} }
if (formatCtx && isFormatCtxOpen) { if (formatCtx && isFormatCtxOpen) {

Loading…
Cancel
Save