summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_key_grab.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-08 08:07:08 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-08 08:08:10 +0100
commit8280ef37300aada242a6ffcb808e02f876015a3e (patch)
treebbd65a24da34dfb22cb886b6aab70c8bf2dc3f7a /src/lib/evas/canvas/evas_key_grab.c
parentc6db8ba782fe6ddb8067f67f03d7931c3da20fe9 (diff)
Remove the grab from any lists Before we free it.
NB: Fixes Coverity CID 1039888 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_key_grab.c')
-rw-r--r--src/lib/evas/canvas/evas_key_grab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_key_grab.c b/src/lib/evas/canvas/evas_key_grab.c
index 19b6594..a9f9480 100644
--- a/src/lib/evas/canvas/evas_key_grab.c
+++ b/src/lib/evas/canvas/evas_key_grab.c
@@ -108,11 +108,11 @@ evas_object_grabs_cleanup(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protected
108 while (obj->grabs) 108 while (obj->grabs)
109 { 109 {
110 Evas_Key_Grab *g = obj->grabs->data; 110 Evas_Key_Grab *g = obj->grabs->data;
111 obj->layer->evas->grabs =
112 eina_list_remove(obj->layer->evas->grabs, g);
113 obj->grabs = eina_list_remove(obj->grabs, g);
111 if (g->keyname) free(g->keyname); 114 if (g->keyname) free(g->keyname);
112 free(g); 115 free(g);
113 obj->layer->evas->grabs = eina_list_remove(obj->layer->evas->grabs,
114 g);
115 obj->grabs = eina_list_remove(obj->grabs, g);
116 } 116 }
117 } 117 }
118} 118}