[vlc-devel] commit: description: A buggy case needs an assert. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Mar 29 14:16:37 CET 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Mar 29 14:09:36 2008 +0100| [49bc02ec7379d9d357fdc1e31e740fdcab3bebfa]
description: A buggy case needs an assert.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49bc02ec7379d9d357fdc1e31e740fdcab3bebfa
---
modules/stream_out/description.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/description.c b/modules/stream_out/description.c
index 499da5a..78d13a4 100644
--- a/modules/stream_out/description.c
+++ b/modules/stream_out/description.c
@@ -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 );
}
More information about the vlc-devel
mailing list