Commit 395d0372 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

modules/control/http: Fix input_item memleak.

parent 694be9ad
......@@ -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 );
......
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment