summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-03-12 15:42:30 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-03-12 15:42:30 +0900
commitd98721a056f1408ff99d347a57154ae4d3599ab7 (patch)
treeac0be007cbc78d1cac6727b952c8449749ebec94
parent260cdd6150d567fcee8d1afaf690e4b90cd16a2b (diff)
genlist: Send param item type instead of eo item type.
Summary: The _item_unselect() fucntion called at _elm_genlist_select_mode_set() with parameter. It makes crash when access it->item. it is eo item type actually so it doesn't have member as item or something. @fix Test Plan: 1. Run elementary_test 2. Execute genlist 3. Select an item on list and click Next API fucntion button 2times. 4. Check the crash. Reviewers: seoz, woohyun, Hermet Reviewed By: Hermet Subscribers: SanghyeonLee Differential Revision: https://phab.enlightenment.org/D2136
-rw-r--r--src/lib/elm_genlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 87b3c2d4b..4aa0d8681 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7560,9 +7560,12 @@ _elm_genlist_select_mode_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Elm_Obje
7560 (sd->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)) 7560 (sd->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY))
7561 { 7561 {
7562 Eina_List *l, *ll; 7562 Eina_List *l, *ll;
7563 Elm_Gen_Item *it; 7563 Elm_Object_Item *eo_it;
7564 EINA_LIST_FOREACH_SAFE(sd->selected, l, ll, it) 7564 EINA_LIST_FOREACH_SAFE(sd->selected, l, ll, eo_it)
7565 {
7566 ELM_GENLIST_ITEM_DATA_GET(eo_it, it);
7565 _item_unselect(it); 7567 _item_unselect(it);
7568 }
7566 } 7569 }
7567} 7570}
7568 7571