index: fix mem leak on focus next
authorAmitesh Singh <amitesh.sh@samsung.com>
Tue, 24 Jan 2017 16:45:55 +0000 (22:15 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Tue, 24 Jan 2017 16:45:55 +0000 (22:15 +0530)
This patch fixes an eina list mem leak on each
focus next(tab/alt-tab) traversal.

@fix

src/lib/elementary/elm_index.c

index 76b6be4..a407ba8 100644 (file)
@@ -1179,6 +1179,7 @@ _elm_index_elm_widget_focus_next(Eo *obj, Elm_Index_Data *sd, Elm_Focus_Directio
 
    int_ret = elm_widget_focus_list_next_get
             (obj, items, eina_list_data_get, dir, next, next_item);
+   eina_list_free(items);
 
    // to hide index item, if there is nothing to focus on autohide disable mode
    if ((!sd->autohide_disabled) && (!int_ret))