[PATCH] weston-editor: Free preferred_language in text_entry_destroy
Bryce Harrington
bryce at osg.samsung.com
Thu Nov 17 23:01:19 UTC 2016
On Thu, Nov 17, 2016 at 09:43:06PM +0100, Silvan Jegen wrote:
> Signed-off-by: Silvan Jegen <s.jegen at gmail.com>
Yep, the value is set via a strdup in main(), so needs free'd.
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
> ---
> clients/editor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/clients/editor.c b/clients/editor.c
> index 1ed3eec..a0d66d1 100644
> --- a/clients/editor.c
> +++ b/clients/editor.c
> @@ -719,6 +719,7 @@ text_entry_destroy(struct text_entry *entry)
> zwp_text_input_v1_destroy(entry->text_input);
> g_clear_object(&entry->layout);
> free(entry->text);
> + free(entry->preferred_language);
> free(entry);
> }
>
> --
> 2.10.2
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list