Go to file
Thiep Ha 58b6b6596a [Elm_Dnd] Fix segmentation fault when deleting object with same registered drop callbacks
Summary:
In case we register two or more of same drop callbacks for one object, when that object is deleted, segmentation fault happens.

Test case: Register only same callbacks more than two times for one object. Delete that object (manual or auto). Segmentation fault happens.
Reason: When object is deleted, we remove all drop callbacks registered with the object. The _all_drops_targets_cbs_del and elm_drop_target_del are used to do that and they operates on the same cbs_list. If elm_drop_target_del remove the current and the next callbacks in cbs_list, the segmentation fault will happen at _all_drops_targets_cbs_del.
Fix: Check and use updated cbs_list.

@fix

Reviewers: JackDanielZ, raster, seoz

Reviewed By: JackDanielZ

CC: woohyun

Differential Revision: https://phab.enlightenment.org/D691
2014-04-03 19:08:07 +09:00
legacy/elementary [Elm_Dnd] Fix segmentation fault when deleting object with same registered drop callbacks 2014-04-03 19:08:07 +09:00