API for comparing AtspiAccessible objects by unique_id
[platform/upstream/at-spi2-core.git] / atspi / atspi-event-listener.c
index 859f4a5..86ff28c 100644 (file)
@@ -232,7 +232,7 @@ cache_process_children_changed (AtspiEvent *event)
   else
   {
     g_ptr_array_remove (event->source->children, child);
-    if (child == child->parent.app->root)
+    if (atspi_accessible_is_equal (child, child->parent.app->root))
       g_object_run_dispose (G_OBJECT (child->parent.app));
   }
 }