summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-01-24 22:50:24 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2017-01-24 22:50:24 +0530
commit7a5e64ef90e097b18d34d4337d04d7929e29b6aa (patch)
tree1892a74898294e5d12ac8aff5752705877172dba
parent625f7bc90bac9839b639e3dbc1d3446bf6e8cd67 (diff)
genlist: fix mem leak on focus next
This patch fixes an eina list mem leak on each focus next(tab/alt-tab) traversal. @fix
-rw-r--r--src/lib/elementary/elm_genlist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 5035a44c18..d880809d69 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -3385,6 +3385,7 @@ _elm_genlist_elm_widget_focus_next(Eo *obj, Elm_Genlist_Data *sd, Elm_Focus_Dire
3385 Item_Block *itb; 3385 Item_Block *itb;
3386 Eina_List *items = NULL; 3386 Eina_List *items = NULL;
3387 Eina_Bool done = EINA_FALSE; 3387 Eina_Bool done = EINA_FALSE;
3388 int ret;
3388 3389
3389 evas_object_geometry_get(sd->obj, &sx, &sy, &sw, &sh); 3390 evas_object_geometry_get(sd->obj, &sx, &sy, &sw, &sh);
3390 3391
@@ -3420,8 +3421,11 @@ _elm_genlist_elm_widget_focus_next(Eo *obj, Elm_Genlist_Data *sd, Elm_Focus_Dire
3420 else if (done) break; 3421 else if (done) break;
3421 } 3422 }
3422 3423
3423 return elm_widget_focus_list_next_get 3424 ret = elm_widget_focus_list_next_get
3424 (obj, items, eina_list_data_get, dir, next, next_item); 3425 (obj, items, eina_list_data_get, dir, next, next_item);
3426 eina_list_free(items);
3427
3428 return ret;
3425} 3429}
3426 3430
3427static void 3431static void