[vlc-commits] ogg: fix order of frees

Tristan Matthews git at videolan.org
Wed Dec 4 15:39:19 CET 2013


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Wed Dec  4 09:37:11 2013 -0500| [cb7e26a4bfddfb6fb029ae6d07a7890bd88bf61e] | committer: Tristan Matthews

ogg: fix order of frees

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb7e26a4bfddfb6fb029ae6d07a7890bd88bf61e
---

 modules/mux/ogg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index f81c927..8891372 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -292,8 +292,8 @@ static void Close( vlc_object_t * p_this )
         {
             OggCreateStreamFooter( p_mux, p_sys->pp_del_streams[i] );
             free( p_sys->pp_del_streams[i]->p_oggds_header );
-            free( p_sys->pp_del_streams[i] );
             free( p_sys->pp_del_streams[i]->skeleton.p_index );
+            free( p_sys->pp_del_streams[i] );
         }
         free( p_sys->pp_del_streams );
         p_sys->i_streams -= p_sys->i_del_streams;



More information about the vlc-commits mailing list