[vlc-devel] commit: Memory leak (CID#266) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 12 10:08:12 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 12 11:07:51 2008 +0300| [aa765201bb44d6affc5a35c3900579856d5c01f8] | committer: Rémi Denis-Courmont 

Memory leak (CID#266)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa765201bb44d6affc5a35c3900579856d5c01f8
---

 modules/control/http/util.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 869b88a..6220d23 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




More information about the vlc-devel mailing list