]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/rtp.c
misc/objects.c: Don't rely on vlc_object_destroy() to destroy objects, but expects...
[vlc] / modules / stream_out / rtp.c
index 785149835ee07820913123c9d513ff5b171d7d75..aded619bafb7cdda15241306ca93021962bd276f 100644 (file)
@@ -1210,7 +1210,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
     if( p_sys->b_export_sdp_file ) FileSetup( p_stream );
 
     vlc_object_detach( id );
-    vlc_object_destroy( id );
+    vlc_object_release( id );
     return VLC_SUCCESS;
 }