[vlc-devel] commit: Remove useless check and assignment ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Oct 14 18:25:54 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 14 19:25:33 2009 +0300| [12265bc762016c637992cb80a50835dc90c57f03] | committer: Rémi Denis-Courmont
Remove useless check and assignment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12265bc762016c637992cb80a50835dc90c57f03
---
modules/services_discovery/sap.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 234d98f..94cf482 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -468,11 +468,10 @@ static void Close( vlc_object_t *p_this )
static void CloseDemux( vlc_object_t *p_this )
{
demux_t *p_demux = (demux_t *)p_this;
- if( p_demux->p_sys )
- {
- if( p_demux->p_sys->p_sdp ) { FreeSDP( p_demux->p_sys->p_sdp ); p_demux->p_sys->p_sdp = NULL; }
- free( p_demux->p_sys );
- }
+
+ if( p_demux->p_sys->p_sdp )
+ FreeSDP( p_demux->p_sys->p_sdp );
+ free( p_demux->p_sys );
}
/*****************************************************************************
More information about the vlc-devel
mailing list