[PATCH weston] shell: Free temporary strings

Kristian Høgsberg hoegsberg at gmail.com
Thu Jun 20 12:06:07 PDT 2013


On Tue, Jun 18, 2013 at 09:11:03AM +0200, Quentin Glidic wrote:
> From: Quentin Glidic <sardemff7+git at sardemff7.net>

Thanks, applied.

> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> ---
>  src/shell.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/shell.c b/src/shell.c
> index ceb963c..4447995 100644
> --- a/src/shell.c
> +++ b/src/shell.c
> @@ -402,8 +402,10 @@ shell_configuration(struct desktop_shell *shell)
>  	weston_config_section_get_string(section,
>  					 "binding-modifier", &s, "super");
>  	shell->binding_modifier = get_modifier(s);
> +	free(s);
>  	weston_config_section_get_string(section, "animation", &s, "none");
>  	shell->win_animation_type = get_animation_type(s);
> +	free(s);
>  	weston_config_section_get_uint(section, "num-workspaces",
>  				       &shell->workspaces.num,
>  				       DEFAULT_NUM_WORKSPACES);
> -- 
> 1.8.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list