summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_service.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2013-08-23 19:45:12 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2013-08-26 15:16:26 -0300
commitd1d298e4c27e069ef150d19474e0b5643b18c534 (patch)
tree45d1f2b6f13ef7b854b882ef30b1dfef6d1d220f /src/lib/eldbus/eldbus_service.c
parent36b71d867c6f6280af0955ae04e326afbecb7c22 (diff)
eldbus: Use EINA_LIST_FREE instead of EINA_LIST_FOREACH to send interfaces add
Diffstat (limited to 'src/lib/eldbus/eldbus_service.c')
-rw-r--r--src/lib/eldbus/eldbus_service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eldbus/eldbus_service.c b/src/lib/eldbus/eldbus_service.c
index 9402e3327d..2d9c6dd16a 100644
--- a/src/lib/eldbus/eldbus_service.c
+++ b/src/lib/eldbus/eldbus_service.c
@@ -715,7 +715,6 @@ static void
715_object_manager_iface_added_emit(Eldbus_Service_Object *obj, 715_object_manager_iface_added_emit(Eldbus_Service_Object *obj,
716 Eldbus_Service_Object *parent) 716 Eldbus_Service_Object *parent)
717{ 717{
718 Eina_List *l;
719 Eldbus_Service_Interface *iface; 718 Eldbus_Service_Interface *iface;
720 Eldbus_Message_Iter *iter, *array; 719 Eldbus_Message_Iter *iter, *array;
721 Eldbus_Message *sig = eldbus_message_signal_new(parent->path, 720 Eldbus_Message *sig = eldbus_message_signal_new(parent->path,
@@ -726,7 +725,7 @@ _object_manager_iface_added_emit(Eldbus_Service_Object *obj,
726 eldbus_message_iter_arguments_append(iter, "oa{sa{sv}}", obj->path, 725 eldbus_message_iter_arguments_append(iter, "oa{sa{sv}}", obj->path,
727 &array); 726 &array);
728 727
729 EINA_LIST_FOREACH(obj->iface_added, l, iface) 728 EINA_LIST_FREE(obj->iface_added, iface)
730 { 729 {
731 if (!_propmgr_iface_props_append(iface, array)) 730 if (!_propmgr_iface_props_append(iface, array))
732 { 731 {
@@ -737,6 +736,7 @@ _object_manager_iface_added_emit(Eldbus_Service_Object *obj,
737 } 736 }
738 eldbus_message_iter_container_close(iter, array); 737 eldbus_message_iter_container_close(iter, array);
739 eldbus_connection_send(parent->conn, sig, NULL, NULL, -1); 738 eldbus_connection_send(parent->conn, sig, NULL, NULL, -1);
739 return;
740 740
741done: 741done:
742 obj->iface_added = eina_list_free(obj->iface_added); 742 obj->iface_added = eina_list_free(obj->iface_added);