summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2014-11-11 17:58:49 +0200
committerVitalii Vorobiov <vi.vorobiov@samsung.com>2014-11-11 17:58:49 +0200
commit5d3c5c0800545e0bfce8da9f8324e005edaa98c9 (patch)
treeab8e648a59d4421fafe0fb0533691ae09fbc35af
parent3ba5eff3155b3afc2beed2e8046defbc1ab66846 (diff)
Combobox: fixing Read from pointer after free (USE_AFTER_FREE).
[Prevent fix #52810]
-rw-r--r--src/lib/ewe_combobox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ewe_combobox.c b/src/lib/ewe_combobox.c
index ab26c0f..f03d43e 100644
--- a/src/lib/ewe_combobox.c
+++ b/src/lib/ewe_combobox.c
@@ -272,13 +272,14 @@ _ewe_combobox_item_del(Eo *obj,
272 } 272 }
273 } 273 }
274 sd->items = eina_list_remove(sd->items, item); 274 sd->items = eina_list_remove(sd->items, item);
275 _item_data_free(item);
276 275
277 l = eina_list_nth_list(sd->items, item->index); 276 l = eina_list_nth_list(sd->items, item->index);
278 for (data = eina_list_data_get(l); l ; 277 for (data = eina_list_data_get(l); l ;
279 l = eina_list_next(l), data = eina_list_data_get(l)) 278 l = eina_list_next(l), data = eina_list_data_get(l))
280 data->index--; 279 data->index--;
281 280
281 _item_data_free(item);
282
282 return EINA_TRUE; 283 return EINA_TRUE;
283} 284}
284 285