From ad6fdc585a56952912c334af5210cfe9d42daa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 20 Dec 2012 01:55:47 +0000 Subject: [PATCH] edbus: Remove object path of service if ObjectManager is the last optional iface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by: José Roberto de Souza SVN revision: 81416 --- legacy/edbus/src/lib/edbus_service.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/edbus/src/lib/edbus_service.c b/legacy/edbus/src/lib/edbus_service.c index 45883bcda1..b39d1b9076 100644 --- a/legacy/edbus/src/lib/edbus_service.c +++ b/legacy/edbus/src/lib/edbus_service.c @@ -1458,5 +1458,8 @@ edbus_service_object_manager_detach(EDBus_Service_Interface *iface) ret = eina_hash_del(obj->interfaces, objmanager->name, NULL); obj->has_objectmanager = EINA_FALSE; obj->introspection_dirty = EINA_TRUE; + //properties + introspectable + if (eina_hash_population(iface->obj->interfaces) < 3) + edbus_service_object_unregister(iface); return ret; }