1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

sapenc: Free AVStream->info on cleanup

This fixes yet another memory leak, present since SVN rev 25418.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 1f56f5ed6d68f6492e213944e145e04e4d4dca13)
This commit is contained in:
Martin Storsjö 2011-02-03 12:10:12 +00:00 committed by Michael Niedermayer
parent ea46876301
commit a991b8dec6

View File

@ -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;