aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-01 11:56:36 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-01 11:56:36 +0000
commitf97f3cdb2d24f0197f126bba55bcd422d0d03c98 (patch)
tree4155194796ab4154e2b12a12b4c47311f68c6040
parentfix leak in e profile list dbus method (diff)
downloadenlightenment-f97f3cdb2d24f0197f126bba55bcd422d0d03c98.tar.gz
ffs this free macro needs to get fixed to not fail here
SVN revision: 83555
-rw-r--r--src/bin/e_msgbus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/e_msgbus.c b/src/bin/e_msgbus.c
index a747a15dd..819a5f6c5 100644
--- a/src/bin/e_msgbus.c
+++ b/src/bin/e_msgbus.c
@@ -351,6 +351,7 @@ static EDBus_Message *
_e_msgbus_profile_list_cb(const EDBus_Service_Interface *iface __UNUSED__,
const EDBus_Message *msg)
{
+ Eina_List *l;
char *name;
EDBus_Message *reply;
EDBus_Message_Iter *array, *main_iter;
@@ -364,7 +365,8 @@ _e_msgbus_profile_list_cb(const EDBus_Service_Interface *iface __UNUSED__,
edbus_message_iter_arguments_append(main_iter, "as", &array);
EINA_SAFETY_ON_FALSE_RETURN_VAL(array, reply);
- EINA_LIST_FREE(e_config_profile_list(), name)
+ l = e_config_profile_list();
+ EINA_LIST_FREE(l, name)
{
edbus_message_iter_basic_append(array, 's', name);
free(name);