control/media_instance.c: Fix a segfault caused by libvlc_media_instance_release...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 3 Oct 2007 00:28:36 +0000 (00:28 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 3 Oct 2007 00:28:36 +0000 (00:28 +0000)
src/control/media_instance.c

index ff61554..26f04c2 100644 (file)
@@ -340,10 +340,10 @@ void libvlc_media_instance_release( libvlc_media_instance_t *p_mi )
     vlc_mutex_unlock( &p_mi->object_lock );
     vlc_mutex_destroy( &p_mi->object_lock );
 
-    libvlc_event_manager_release( p_mi->p_event_manager );
     release_input_thread( p_mi );
 
+    libvlc_event_manager_release( p_mi->p_event_manager );
     libvlc_media_descriptor_release( p_mi->p_md );
 
     free( p_mi );