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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-01-08 14:51:04 +01:00
parent 26c72d2941
commit bf3126db6a
1 changed files with 1 additions and 1 deletions

View File

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