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:
parent
543d924669
commit
bbc1802701
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue