提交 a991b8de 编写于 作者: M Martin Storsjö 提交者: Michael Niedermayer

sapenc: Free AVStream->info on cleanup

This fixes yet another memory leak, present since SVN rev 25418.
Signed-off-by: NMans Rullgard <mans@mansr.com>
(cherry picked from commit 1f56f5ed)
上级 ea468763
......@@ -48,6 +48,7 @@ static int sap_write_close(AVFormatContext *s)
url_fclose(rtpctx->pb);
av_metadata_free(&rtpctx->streams[0]->metadata);
av_metadata_free(&rtpctx->metadata);
av_free(rtpctx->streams[0]->info);
av_free(rtpctx->streams[0]);
av_free(rtpctx);
s->streams[i]->priv_data = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册