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

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

parent 26c72d29
No related branches found
No related tags found
No related merge requests found
...@@ -486,7 +486,7 @@ static int hls_write_trailer(struct AVFormatContext *s) ...@@ -486,7 +486,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
hls_free_segments(hls->segments); hls_free_segments(hls->segments);
hls_free_segments(hls->old_segments); hls_free_segments(hls->old_segments);
avio_close(hls->pb); avio_closep(&hls->pb);
return 0; return 0;
} }
......
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