[vlc-devel] commit: Clarify code (FALSE CID#244) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Oct 5 16:06:24 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 5 17:05:56 2008 +0300| [415696ae4d666a84862109b015d8670753dd764b] | committer: Rémi Denis-Courmont
Clarify code (FALSE CID#244)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=415696ae4d666a84862109b015d8670753dd764b
---
modules/misc/rtsp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index ed31c53..6ad3521 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -931,12 +931,13 @@ static void RtspClientDel( vod_media_t *p_media, rtsp_client_t *p_rtsp )
msg_Dbg( p_media->p_vod, "closing session: %s, connections: %d",
p_rtsp->psz_session, p_media->p_vod->p_sys->i_throttle_users );
- while( p_rtsp->i_es-- )
+ while( p_rtsp->i_es )
{
+ p_rtsp->i_es--;
free( p_rtsp->es[p_rtsp->i_es]->psz_ip );
free( p_rtsp->es[p_rtsp->i_es] );
- if( !p_rtsp->i_es ) free( p_rtsp->es );
}
+ free( p_rtsp->es );
TAB_REMOVE( p_media->i_rtsp, p_media->rtsp, p_rtsp );
More information about the vlc-devel
mailing list