control: Fix multiple event_manager leaks.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 27 Aug 2007 19:16:10 +0000 (19:16 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 27 Aug 2007 19:16:10 +0000 (19:16 +0000)
src/control/media_library.c
src/control/media_list_player.c

index f66fb36..b6e030d 100644 (file)
@@ -67,6 +67,7 @@ void libvlc_media_library_release( libvlc_media_library_t * p_mlib )
     if( p_mlib->i_refcount > 0 )
         return;
 
+    libvlc_event_manager_release( p_mlib->p_event_manager );
        free( p_mlib );
 }
 
index 4753131..76499e5 100644 (file)
@@ -221,6 +221,7 @@ libvlc_media_list_player_new( libvlc_instance_t * p_instance,
  **************************************************************************/
 void libvlc_media_list_player_release( libvlc_media_list_player_t * p_mlp )
 {
+    libvlc_event_manager_release( p_mlib->p_event_manager );
     free(p_mlp);
 }