Evas Device: use EINA_LIST_FOREACH_SAFE instead of EINA_LIST_FREE 28/70228/3
authorDuna Oh <duna.oh@samsung.com>
Thu, 19 May 2016 01:58:36 +0000 (10:58 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 19 May 2016 02:21:27 +0000 (19:21 -0700)
commitb2400e254af368c1bfbdbe6fa6f1ee462576be63
tree1e3ee924159baf0666617baa2afad22b7fa944ec
parent6e493b6ebfd7ed39d34afb2738829f2b2bd6bccf
Evas Device: use EINA_LIST_FOREACH_SAFE instead of EINA_LIST_FREE

evas_device_del does eina_list_remove, and EINA_LIST_FREE does the same thing.
It can causes memory leak and possible crash. (reported by valgrind)

Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: I2166f1eb4672ffe65dd961d608557018ade1cae0
src/lib/evas/canvas/evas_device.c