demux/avformat: CloseDemux: properly release allocated attachments
commit8bc1f1a5eef44e2f62e2a7a9ca660eaac9e52859
authorFilip Roséen <filip@atch.se>
Fri, 19 May 2017 12:35:43 +0000 (19 14:35 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 May 2017 12:39:23 +0000 (19 14:39 +0200)
tree0fb5fe4040d1a96664c213badd93089f4935e342
parent9a994f8f0f2b9e0eff666bc9a89e34da8afca03a
demux/avformat: CloseDemux: properly release allocated attachments

The entries within p_sys->attachments are of course allocated with
vlc_input_attachment_New, meaning that they shall be released using
the corresponding vlc_input_attachment_Delete.

fixes: #18288

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/demux.c