ogg: fix order of frees
authorTristan Matthews <le.businessman@gmail.com>
Wed, 4 Dec 2013 14:37:11 +0000 (09:37 -0500)
committerTristan Matthews <le.businessman@gmail.com>
Wed, 4 Dec 2013 14:38:44 +0000 (09:38 -0500)
modules/mux/ogg.c

index f81c927..8891372 100644 (file)
@@ -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;