aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2012-11-16 13:07:26 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-11-16 13:07:26 +0000
commite3607b5b35b57b727bc5fe166059ee26dc1d6510 (patch)
treefed9bf9cc665e2af9ccedfebb6e0dce07c6448ba
parentedbus: Remove stringshare of Instrospectable interface (diff)
downloadefl-e3607b5b35b57b727bc5fe166059ee26dc1d6510.tar.gz
edbus: Cosmetic change
There's no need to call eina_array_count(). Pop until it finishes. Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 79384
-rw-r--r--legacy/edbus/src/lib/edbus_service.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/legacy/edbus/src/lib/edbus_service.c b/legacy/edbus/src/lib/edbus_service.c
index 2f847d533c..b88398bebf 100644
--- a/legacy/edbus/src/lib/edbus_service.c
+++ b/legacy/edbus/src/lib/edbus_service.c
@@ -995,16 +995,15 @@ fail:
static void
_interface_free(EDBus_Service_Interface *interface)
{
- unsigned size, i;
+ const char *sig;
EDBus_Service_Object *parent;
if (interface == introspectable || interface == properties_iface ||
interface == objmanager)
return;
eina_hash_free(interface->methods);
- size = eina_array_count(interface->sign_of_signals);
- for (i = 0; i < size; i++)
- eina_stringshare_del(eina_array_data_get(interface->sign_of_signals, i));
+ while ((sig = eina_array_pop(interface->sign_of_signals)))
+ eina_stringshare_del(sig);
eina_array_free(interface->sign_of_signals);
eina_hash_free(interface->properties);
if (interface->props_changed)