Preparing for release, so a bit of maintenance.

This commit is contained in:
Storm Dragon committed 2026-10-22 13:14:06 -04:00
1 parent 3e9c4f83ce
commit 205d5c49d2
4 files changed
+64 -53

No files matched your search

+9 -1
View File
@@ -247,7 +247,15 @@ static AtspiAccessible *cthulhu_collection_descendant(AtspiAccessible *window,
}
}
if (error != NULL) g_clear_error(&error);
if (matches != NULL) g_array_unref(matches);
if (matches != NULL) {
// Collection results own each accessible as well as the array.
// Keep only the separate reference returned as target.
for (guint index = 0; index < matches->len; index++) {
AtspiAccessible *match = g_array_index(matches, AtspiAccessible *, index);
if (match != NULL) g_object_unref(match);
}
g_array_unref(matches);
}
g_object_unref(rule);
g_object_unref(states);
if (roles != NULL) g_array_unref(roles);