Fixed crash during deregistering applications. 92/49792/2
authorTomasz Olszak <t.olszak@samsung.com>
Tue, 13 Oct 2015 14:05:34 +0000 (16:05 +0200)
committerTomasz Olszak <t.olszak@samsung.com>
Fri, 23 Oct 2015 14:56:27 +0000 (16:56 +0200)
Change-Id: I402bc5d6ed5f9ea503c4b310ec3c4fb9a85ca199

registryd/registry.c

index c533eb0..15bc7a9 100644 (file)
@@ -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)));
         {
           found = TRUE;
+          break;
         }
     }