[vlc-commits] AVI: free p_sys resources on Close (WTF?)
Jean-Baptiste Kempf
git at videolan.org
Thu Apr 25 18:39:42 CEST 2013
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 16 14:47:20 2013 +0200| [48915cf06702c7037b428769b1a13bfff8f34d8d] | committer: Jean-Baptiste Kempf
AVI: free p_sys resources on Close (WTF?)
Close #8448
(cherry picked from commit 005aff8b753064933ce6d2dd2862324e5056f165)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=48915cf06702c7037b428769b1a13bfff8f34d8d
---
modules/mux/avi.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/modules/mux/avi.c b/modules/mux/avi.c
index f418914..665b05b 100644
--- a/modules/mux/avi.c
+++ b/modules/mux/avi.c
@@ -222,6 +222,16 @@ static void Close( vlc_object_t * p_this )
p_hdr = avi_HeaderCreateRIFF( p_mux );
sout_AccessOutSeek( p_mux->p_access, 0 );
sout_AccessOutWrite( p_mux->p_access, p_hdr );
+
+ for( i_stream = 0; i_stream < p_sys->i_streams; i_stream++ )
+ {
+ avi_stream_t *p_stream;
+ p_stream = &p_sys->stream[i_stream];
+ free( p_stream->p_bih );
+ free( p_stream->p_wf );
+ }
+ free( p_sys->idx1.entry );
+ free( p_sys );
}
static int Control( sout_mux_t *p_mux, int i_query, va_list args )
More information about the vlc-commits
mailing list