mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 09:56:14 +00:00
shell: Free temporary strings
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
9ae2f111d4
commit
8418c298af
|
@ -402,8 +402,10 @@ shell_configuration(struct desktop_shell *shell)
|
||||||
weston_config_section_get_string(section,
|
weston_config_section_get_string(section,
|
||||||
"binding-modifier", &s, "super");
|
"binding-modifier", &s, "super");
|
||||||
shell->binding_modifier = get_modifier(s);
|
shell->binding_modifier = get_modifier(s);
|
||||||
|
free(s);
|
||||||
weston_config_section_get_string(section, "animation", &s, "none");
|
weston_config_section_get_string(section, "animation", &s, "none");
|
||||||
shell->win_animation_type = get_animation_type(s);
|
shell->win_animation_type = get_animation_type(s);
|
||||||
|
free(s);
|
||||||
weston_config_section_get_uint(section, "num-workspaces",
|
weston_config_section_get_uint(section, "num-workspaces",
|
||||||
&shell->workspaces.num,
|
&shell->workspaces.num,
|
||||||
DEFAULT_NUM_WORKSPACES);
|
DEFAULT_NUM_WORKSPACES);
|
||||||
|
|
Loading…
Reference in a new issue