From: Rémi Denis-Courmont Date: Sun, 12 Oct 2008 08:07:51 +0000 (+0300) Subject: Memory leak (CID#266) X-Git-Tag: 1.0.0-pre1~2558 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=aa765201bb44d6affc5a35c3900579856d5c01f8 Memory leak (CID#266) --- diff --git a/modules/control/http/util.c b/modules/control/http/util.c index 869b88a141..6220d23dd7 100644 --- a/modules/control/http/util.c +++ b/modules/control/http/util.c @@ -352,10 +352,11 @@ void PlaylistListNode( intf_thread_t *p_intf, playlist_t *p_pl, { char value[512]; char *psz; - mvar_t *itm = mvar_New( name, "set" ); playlist_item_t * p_item = playlist_CurrentPlayingItem( p_pl ); if( !p_item || !p_item->p_input ) return; + + mvar_t *itm = mvar_New( name, "set" ); if( p_item->p_input->i_id == p_node->p_input->i_id ) mvar_AppendNewVar( itm, "current", "1" ); else