From: RĂ©mi Duraffort Date: Thu, 31 Jul 2008 17:37:39 +0000 (+0200) Subject: Fix memleak X-Git-Tag: 0.9.0-test3~102 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5eab7541aad8beb57bf70b48251d49b418363f1d;p=vlc Fix memleak --- diff --git a/modules/video_filter/blendbench.c b/modules/video_filter/blendbench.c index ebfeb72c3e..e0302a2697 100644 --- a/modules/video_filter/blendbench.c +++ b/modules/video_filter/blendbench.c @@ -177,6 +177,7 @@ static int Create( vlc_object_t *p_this ) psz_temp = var_CreateGetStringCommand( p_filter, CFG_PREFIX "base-chroma" ); p_sys->i_base_chroma = VLC_FOURCC( psz_temp[0], psz_temp[1], psz_temp[2], psz_temp[3] ); + free( psz_temp ); blendbench_LoadImage( p_this, &p_sys->p_base_image, p_sys->i_base_chroma, var_CreateGetStringCommand( p_filter, CFG_PREFIX "base-image" ), "Base" ); @@ -185,6 +186,7 @@ static int Create( vlc_object_t *p_this ) CFG_PREFIX "blend-chroma" ); p_sys->i_blend_chroma = VLC_FOURCC( psz_temp[0], psz_temp[1], psz_temp[2], psz_temp[3] ); + free( psz_temp ); blendbench_LoadImage( p_this, &p_sys->p_blend_image, p_sys->i_blend_chroma, var_CreateGetStringCommand( p_filter, CFG_PREFIX "blend-image" ), "Blend" );