summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-01-23 11:23:22 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2017-01-23 11:24:51 +0530
commit9736dc6cf0606b4559b3202348511c974d4b2d99 (patch)
tree9b5f1c785ade88171445640c60444ab79cbfdf90
parent09f4cd8cfab15e23f1fa790f8fac0027d885561c (diff)
spinner: fix mem leak on focus next traversel
this patches fixes an eina list mem leak on each focus next(tab/alt-tab) traversal. @fix Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
-rw-r--r--src/lib/elementary/elm_spinner.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_spinner.c b/src/lib/elementary/elm_spinner.c
index 63e5567ba7..ae7c7cd4fd 100644
--- a/src/lib/elementary/elm_spinner.c
+++ b/src/lib/elementary/elm_spinner.c
@@ -1362,6 +1362,7 @@ _elm_spinner_elm_widget_focus_next(Eo *obj, Elm_Spinner_Data *_pd, Elm_Focus_Dir
1362{ 1362{
1363 Evas_Object *ao; 1363 Evas_Object *ao;
1364 Eina_List *items = NULL; 1364 Eina_List *items = NULL;
1365 int ret;
1365 1366
1366 ELM_SPINNER_CHECK(obj) EINA_FALSE; 1367 ELM_SPINNER_CHECK(obj) EINA_FALSE;
1367 1368
@@ -1376,8 +1377,12 @@ _elm_spinner_elm_widget_focus_next(Eo *obj, Elm_Spinner_Data *_pd, Elm_Focus_Dir
1376 items = eina_list_append(items, _pd->text_button); 1377 items = eina_list_append(items, _pd->text_button);
1377 items = eina_list_append(items, _pd->inc_button); 1378 items = eina_list_append(items, _pd->inc_button);
1378 } 1379 }
1379 return elm_widget_focus_list_next_get 1380
1381 ret = elm_widget_focus_list_next_get
1380 (obj, items, eina_list_data_get, dir, next, next_item); 1382 (obj, items, eina_list_data_get, dir, next, next_item);
1383 eina_list_free(items);
1384
1385 return ret;
1381} 1386}
1382 1387
1383EOLIAN static void 1388EOLIAN static void