summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-03 11:55:55 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-10-03 11:55:55 +0900
commit1afddc3b5e84e7366c38b614a95f0fd4e5490013 (patch)
tree86ba4343a303d6436e0e94461e6c03717dbfd309
parent2642e8c95a81160e74437800ab7af74e9a134df5 (diff)
downloadenlightenment-1afddc3b5e84e7366c38b614a95f0fd4e5490013.tar.gz
explicitly use eina list types passing into EINA_LIST_FREE()
-rw-r--r--src/bin/e_dnd.c4
-rw-r--r--src/bin/e_fm_device.c4
-rw-r--r--src/bin/e_gadget.c3
-rw-r--r--src/bin/e_pixmap.c3
4 files changed, 10 insertions, 4 deletions
diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index 5e799f2cb1..20ed64bf91 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -1051,6 +1051,7 @@ _e_drag_end(int x, int y)
((h->cb.drop) && (E_INSIDE(ev.x, ev.y, h->x, h->y, h->w, h->h))))
{
Eina_Bool need_free = EINA_FALSE;
+ Eina_List *list;
if (_drag_current->cb.convert)
{
@@ -1084,7 +1085,8 @@ _e_drag_end(int x, int y)
ev.data = _drag_current->data;
}
h->cb.drop(h->cb.data, h->active_type, &ev);
- if (need_free) E_FREE_LIST(ev.data, free);
+ list = ev.data;
+ if (need_free) E_FREE_LIST(list, free);
dropped = 1;
}
h->entered = 0;
diff --git a/src/bin/e_fm_device.c b/src/bin/e_fm_device.c
index a7a252e0a3..ed9d1b656a 100644
--- a/src/bin/e_fm_device.c
+++ b/src/bin/e_fm_device.c
@@ -683,9 +683,11 @@ _e_fm2_device_check_desktop_icons_list_cb(const char *name, const char *path, vo
static void
_e_fm2_device_check_desktop_icons_cb(void *data, Ecore_Thread *eth EINA_UNUSED)
{
+ Eina_List *list = data;
+
eina_file_dir_list(efreet_desktop_dir_get(), EINA_FALSE, _e_fm2_device_check_desktop_icons_list_cb, data);
- E_FREE_LIST(data, free);
+ E_FREE_LIST(list, free);
}
E_API void
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index b8c7b8a0cc..f68d37a77e 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -1751,7 +1751,8 @@ e_gadget_shutdown(void)
static void
_editor_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- E_FREE_LIST(data, free);
+ Eina_List *list = data;
+ E_FREE_LIST(list, free);
}
static void
diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index 72b26e88d7..4d28814075 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -127,7 +127,8 @@ _e_pixmap_clear(E_Pixmap *cp, Eina_Bool cache)
static void
_e_pixmap_image_clear_x(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- E_FREE_LIST(data, ecore_x_image_free);
+ Eina_List *list = data;
+ E_FREE_LIST(list, ecore_x_image_free);
}
#endif