From 38af8831d76dd07d95adc57c4b5eb555eb28d0b5 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Thu, 17 Jun 2004 20:31:45 +0000 Subject: [PATCH] * livedotcom: small memleak + removed a FIXME. Thanks Dermot McGahon for the report. --- modules/demux/livedotcom.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/demux/livedotcom.cpp b/modules/demux/livedotcom.cpp index c6c5b66caf..bf60c1b669 100644 --- a/modules/demux/livedotcom.cpp +++ b/modules/demux/livedotcom.cpp @@ -416,7 +416,9 @@ static int DemuxOpen ( vlc_object_t *p_this ) sprintf( psz_url, "rtsp://%s", p_demux->psz_path ); psz_options = p_sys->rtsp->sendOptionsCmd( psz_url ); - /* FIXME psz_options -> delete or free */ + if( psz_options ) + delete [] psz_options; + free( psz_url ); } if( ( p_sys->ms = MediaSession::createNew(*p_sys->env, p_sys->p_sdp ) ) == NULL ) @@ -612,7 +614,7 @@ static int DemuxOpen ( vlc_object_t *p_this ) tk->b_muxed = VLC_TRUE; tk->p_out_muxed = stream_DemuxNew( p_demux, "ts2", p_demux->out ); } - else if( !strcmp( sub->codecName(), "MP2P" ) || !strcmp( sub->codecName(), "MP1S" ) ) /* FIXME check MP1S */ + else if( !strcmp( sub->codecName(), "MP2P" ) || !strcmp( sub->codecName(), "MP1S" ) ) { tk->b_muxed = VLC_TRUE; tk->p_out_muxed = stream_DemuxNew( p_demux, "ps2", p_demux->out ); -- GitLab