]> git.sesse.net Git - vlc/commitdiff
libvlc: Destroy libvlc's vlm instance before the stats destruction to avoid input...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 23:07:45 +0000 (01:07 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 23:07:45 +0000 (01:07 +0200)
src/libvlc-common.c

index d2777ac6ed357485e0dabe64521b728432185bc5..2b981f5df9c4cdfa35d30f333640ce828f35f8ea 100644 (file)
@@ -970,6 +970,12 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
         aout_Delete( p_aout );
     }
 
+    /* Destroy VLM if created in libvlc_InternalInit */
+    if( p_libvlc->p_vlm )
+    {
+        vlm_Delete( p_libvlc->p_vlm );
+    }
+
     /* Free interaction */
     msg_Dbg( p_libvlc, "removing interaction" );
     vlc_object_release( p_libvlc->p_interaction );
@@ -998,12 +1004,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     vlc_mutex_destroy( &p_libvlc->p_stats->lock );
     FREENULL( p_libvlc->p_stats );
 
-    /* Destroy VLM if created in libvlc_InternalInit */
-    if( p_libvlc->p_vlm )
-    {
-        vlm_Delete( p_libvlc->p_vlm );
-    }
-
     return VLC_SUCCESS;
 }