discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=bbc1802701a3b6676502009283a2f1b105cb5c92

commit bbc1802701a3b6676502009283a2f1b105cb5c92
Author: Seunghun Lee <beauty.positi...@gmail.com>
Date:   Mon Sep 7 13:13:52 2015 -0400

    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
---
 src/modules/wl_text_input/e_mod_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/wl_text_input/e_mod_main.c 
b/src/modules/wl_text_input/e_mod_main.c
index c5332e8..67d0459 100644
--- a/src/modules/wl_text_input/e_mod_main.c
+++ b/src/modules/wl_text_input/e_mod_main.c
@@ -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);
 }
 

-- 


Reply via email to