From: Mike Gorse Date: Fri, 7 Dec 2012 17:21:19 +0000 (-0600) Subject: Fix deregistering of applications X-Git-Tag: AT_SPI2_CORE_2_7_3~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53015630d728812dc944da021b5821d7eac3cb14;p=platform%2Fupstream%2Fat-spi2-core.git Fix deregistering of applications --- diff --git a/registryd/registry.c b/registryd/registry.c index a64e0946..e283a90b 100644 --- a/registryd/registry.c +++ b/registryd/registry.c @@ -290,9 +290,10 @@ handle_disconnection (DBusConnection *bus, DBusMessage *message, void *user_data for (i = 0; i < reg->apps->len; i++) { SpiReference *ref = g_ptr_array_index (reg->apps, i); - while (!g_strcmp0 (old, ref->name)) + if (!g_strcmp0 (old, ref->name)) { remove_application (reg, bus, i); + i--; } }