multibuttonentry: Fix item resource clean up logic.
authorWoochan Lee <wc0917.lee@samsung.com>
Wed, 19 Jul 2017 01:35:49 +0000 (10:35 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 19 Jul 2017 04:59:42 +0000 (13:59 +0900)
commit6d31f5c7fd02779e3481dba715c78ef265efd6ba
tree03c04cd7890fb28403f8a0495431709ab02fcd56
parent1a16a4f10b1c15c17a78d50538059d667974084a
multibuttonentry: Fix item resource clean up logic.

Summary:
There are four cases where items are deleted.

1. Select item and push back button.
2. Delete "X" part of item.
3. Calling elm_object_item_del().
4. MBE deleted.

Previous logic is can't support for all cases.

below problems were there.

eina_list_remove() called twice.
list data free twice.

@fix

Test Plan: elementary_test -> multibuttonentry test.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5030
src/lib/elementary/elc_multibuttonentry.c