]> git.sesse.net Git - vlc/commitdiff
Core: Remove stray code that releases playlist twice
authorSrikanth Raju <srikiraju@gmail.com>
Sat, 26 Jun 2010 14:37:17 +0000 (20:07 +0530)
committerSrikanth Raju <srikiraju@gmail.com>
Sat, 26 Jun 2010 14:37:17 +0000 (20:07 +0530)
src/libvlc.c

index 9ec04a6b5590d8d63197d36d849e087009e0ed62..1651430820a89a668bc5b716621f4f88696eaabf 100644 (file)
@@ -1034,7 +1034,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     /* Free playlist now, all threads are gone */
     playlist_Destroy( p_playlist );
 
-    /* Free playlist now */
 #if defined(MEDIA_LIBRARY)
     media_library_t* p_ml = priv->p_ml;
     if( p_ml )
@@ -1045,11 +1044,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     }
 #endif
 
-    /* Free playlist */
-    /* Any thread still running must not assume pl_Hold() succeeds. */
-    msg_Dbg( p_libvlc, "removing playlist" );
-    vlc_object_release( p_playlist );
-
     stats_TimersDumpAll( p_libvlc );
     stats_TimersCleanAll( p_libvlc );