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 1c7c9fe..c856b41 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 a8cce4d..d2bc53a 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 );