]> git.sesse.net Git - vlc/commitdiff
description: A buggy case needs an assert.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 29 Mar 2008 13:09:36 +0000 (14:09 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 29 Mar 2008 13:16:42 +0000 (14:16 +0100)
modules/stream_out/description.c

index 499da5a58569d3f81ba75055b082b277dfca32a6..78d13a45106f9adb4807a47c4700fd2fe5d3ac20 100644 (file)
@@ -97,8 +97,8 @@ static void Close( vlc_object_t *p_this )
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
     /* It can happen only if buggy */
-    if( p_sys->p_input )
-        vlc_object_release( p_sys->p_input );
+    assert( !p_sys->p_input )
+
     free( p_sys );
 }