Skip to content
Snippets Groups Projects
Commit 643dee84 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/sapenc: Use avio_closep() to avoid leaving stale pointers in memory

parent 2959a612
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ static int sap_write_close(AVFormatContext *s) ...@@ -49,7 +49,7 @@ static int sap_write_close(AVFormatContext *s)
if (!rtpctx) if (!rtpctx)
continue; continue;
av_write_trailer(rtpctx); av_write_trailer(rtpctx);
avio_close(rtpctx->pb); avio_closep(&rtpctx->pb);
avformat_free_context(rtpctx); avformat_free_context(rtpctx);
s->streams[i]->priv_data = NULL; s->streams[i]->priv_data = NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment