]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/waveout.c
misc/objects.c: Don't rely on vlc_object_destroy() to destroy objects, but expects...
[vlc] / modules / audio_output / waveout.c
index b7efbe2c413d00f51511acfa9f71d49f03ab2e4b..ef0460702123284e5ebb591cf80e015cb901633a 100644 (file)
@@ -495,7 +495,7 @@ static void Close( vlc_object_t *p_this )
     /* wake up the audio thread */
     SetEvent( p_sys->event );
     vlc_thread_join( p_sys->p_notif );
-    vlc_object_destroy( p_sys->p_notif );
+    vlc_object_release( p_sys->p_notif );
     CloseHandle( p_sys->event );
 
     /* Close the device */