[vlc-devel] [PATCH] demux/avformat: CloseDemux: properly release allocated attachments
Filip Roséen
filip at atch.se
Fri May 19 14:35:43 CEST 2017
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
---
modules/demux/avformat/demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 833a39d19b..1dd0976ee3 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -711,7 +711,7 @@ void CloseDemux( vlc_object_t *p_this )
}
for( int i = 0; i < p_sys->i_attachments; i++ )
- free( p_sys->attachments[i] );
+ vlc_input_attachment_Delete( p_sys->attachments[i] );
TAB_CLEAN( p_sys->i_attachments, p_sys->attachments);
if( p_sys->p_title )
--
2.12.2
More information about the vlc-devel
mailing list