wl_text_input: initializes input_method's context when destroy context.

Summary: input_method's context set to NULL when context is freed.

Test Plan: N/A

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3015
This commit is contained in:
Seunghun Lee 2015-09-07 13:13:52 -04:00 committed by Mike Blumenkrantz
parent 543d924669
commit bbc1802701
1 changed files with 4 additions and 0 deletions

View File

@ -414,6 +414,10 @@ _e_text_input_method_context_cb_resource_destroy(struct wl_resource *resource)
if (context->kbd.resource)
wl_resource_destroy(context->kbd.resource);
if ((context->input_method) &&
(context->input_method->context == context))
context->input_method->context = NULL;
free(context);
}