]> git.sesse.net Git - vlc/commitdiff
modules/control/http: Fix input_item memleak.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 23 Dec 2007 14:38:53 +0000 (14:38 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 23 Dec 2007 14:38:53 +0000 (14:38 +0000)
modules/control/http/macro.c
modules/control/http/rpn.c

index 1c7c9fe68eae8d2554892502529ab3845d614f60..c856b41b1359f24ea4e6017861b134a4097ecb5b 100644 (file)
@@ -345,6 +345,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         playlist_AddInput( p_sys->p_playlist, p_input,
                                      PLAYLIST_APPEND, PLAYLIST_END, VLC_TRUE,
                                      VLC_FALSE);
+                        vlc_gc_decref( p_input );
                         msg_Dbg( p_intf, "requested mrl add: %s", mrl );
                     }
                     free( psz_uri );
index a8cce4d0da9dbe5b64e25d8fe76a772e037b8aa1..d2bc53ad7cd4a531591e1cd7ed7da3e2dbd48b74 100644 (file)
@@ -844,6 +844,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t  *vars,
                 i_ret = playlist_AddInput( p_sys->p_playlist, p_input,
                                    PLAYLIST_APPEND, PLAYLIST_END, VLC_TRUE,
                                    VLC_FALSE);
+                vlc_gc_decref( p_input );
                 msg_Dbg( p_intf, "requested mrl add: %s", mrl );
             }
             free( psz_uri );