forked from enlightenment/efl
eldbus: Use EINA_LIST_FREE instead of EINA_LIST_FOREACH to send interfaces add
This commit is contained in:
parent
36b71d867c
commit
d1d298e4c2
|
@ -715,7 +715,6 @@ static void
|
||||||
_object_manager_iface_added_emit(Eldbus_Service_Object *obj,
|
_object_manager_iface_added_emit(Eldbus_Service_Object *obj,
|
||||||
Eldbus_Service_Object *parent)
|
Eldbus_Service_Object *parent)
|
||||||
{
|
{
|
||||||
Eina_List *l;
|
|
||||||
Eldbus_Service_Interface *iface;
|
Eldbus_Service_Interface *iface;
|
||||||
Eldbus_Message_Iter *iter, *array;
|
Eldbus_Message_Iter *iter, *array;
|
||||||
Eldbus_Message *sig = eldbus_message_signal_new(parent->path,
|
Eldbus_Message *sig = eldbus_message_signal_new(parent->path,
|
||||||
|
@ -726,7 +725,7 @@ _object_manager_iface_added_emit(Eldbus_Service_Object *obj,
|
||||||
eldbus_message_iter_arguments_append(iter, "oa{sa{sv}}", obj->path,
|
eldbus_message_iter_arguments_append(iter, "oa{sa{sv}}", obj->path,
|
||||||
&array);
|
&array);
|
||||||
|
|
||||||
EINA_LIST_FOREACH(obj->iface_added, l, iface)
|
EINA_LIST_FREE(obj->iface_added, iface)
|
||||||
{
|
{
|
||||||
if (!_propmgr_iface_props_append(iface, array))
|
if (!_propmgr_iface_props_append(iface, array))
|
||||||
{
|
{
|
||||||
|
@ -737,6 +736,7 @@ _object_manager_iface_added_emit(Eldbus_Service_Object *obj,
|
||||||
}
|
}
|
||||||
eldbus_message_iter_container_close(iter, array);
|
eldbus_message_iter_container_close(iter, array);
|
||||||
eldbus_connection_send(parent->conn, sig, NULL, NULL, -1);
|
eldbus_connection_send(parent->conn, sig, NULL, NULL, -1);
|
||||||
|
return;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
obj->iface_added = eina_list_free(obj->iface_added);
|
obj->iface_added = eina_list_free(obj->iface_added);
|
||||||
|
|
Loading…
Reference in New Issue