[at-spi2-core] Fixed crash during removal of last application in registryd.
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Fixed crash during removal of last application in registryd.
- Date: Mon, 26 Oct 2015 22:21:08 +0000 (UTC)
commit 8adcd0124f6b35e495cb0f58c9d4e5c0888ad7ff
Author: Tomasz Olszak <t olszak samsung com>
Date: Tue Oct 13 17:37:38 2015 +0200
Fixed crash during removal of last application in registryd.
Function find_index_of_reference always returned invalid index.
https://bugzilla.gnome.org/show_bug.cgi?id=756513
registryd/registry.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index c533eb0..b5d91f8 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -144,11 +144,12 @@ find_index_of_reference (GPtrArray *arr, const gchar *name, const gchar * path,
ref = spi_reference_new (name, path);
- for (i = 0; i < arr->len && found == FALSE; i++)
+ for (i = 0; i < arr->len; i++)
{
- if (compare_reference (ref, g_ptr_array_index (arr, i)));
+ if (compare_reference (ref, g_ptr_array_index (arr, i)))
{
found = TRUE;
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]