Commit 1f56f5ed authored by Martin Storsjö's avatar Martin Storsjö Committed by Mans Rullgard

sapenc: Free AVStream->info on cleanup

This fixes yet another memory leak, present since SVN rev 25418.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 9ad4c65f
......@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment