edbus: Remove object path of service if ObjectManager is the last optional iface

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81416
This commit is contained in:
José Roberto de Souza 2012-12-20 01:55:47 +00:00 committed by Lucas De Marchi
parent a4327e30ec
commit ad6fdc585a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}