]> git.sesse.net Git - vlc/blobdiff - src/libvlc-common.c
misc/objects.c: Don't rely on vlc_object_destroy() to destroy objects, but expects...
[vlc] / src / libvlc-common.c
index dcd676e70c6023cc9f854c58ba619cdf6f553e7d..e667d249ecb4b33c2a175ba762b300185aa36f66 100644 (file)
@@ -1032,7 +1032,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
     vlc_mutex_destroy( &p_libvlc->timer_lock );
 
     if( b_release ) vlc_object_release( p_libvlc );
-    vlc_object_destroy( p_libvlc );
+    vlc_object_release( p_libvlc );
     p_libvlc = NULL;
 
     /* Stop thread system: last one out please shut the door!