Commit bf3126db authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 26c72d29
......@@ -486,7 +486,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
hls_free_segments(hls->segments);
hls_free_segments(hls->old_segments);
avio_close(hls->pb);
avio_closep(&hls->pb);
return 0;
}
......
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