Projects
Eulaceura:Factory
at-spi2-atk
_service:obs_scm:backport-also-fix-ref-leak-in-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-also-fix-ref-leak-in-try_get_root.patch of Package at-spi2-atk
From 65b22d16e5b81544672c8acf01f0a0388e1192a5 Mon Sep 17 00:00:00 2001 From: Mike Gorse <mgorse@suse.com> Date: Wed, 16 Dec 2020 08:52:30 -0600 Subject: [PATCH] tests: also fix ref leak in try_get_root() --- tests/atk_test_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/atk_test_util.c b/tests/atk_test_util.c index 23735230..366725c4 100644 --- a/tests/atk_test_util.c +++ b/tests/atk_test_util.c @@ -62,13 +62,16 @@ static AtspiAccessible *try_get_root_obj (AtspiAccessible *obj) for (i = 0; i < child_count; i++) { AtspiAccessible *child = atspi_accessible_get_child_at_index (obj, i, NULL); - if (child && name = atspi_accessible_get_name (child, NULL)) { + if (!child) + continue; + if ((name = atspi_accessible_get_name (child, NULL)) != NULL) { if (!strcmp (name, "root_object")) { g_free(name); return child; } g_free(name); } + g_object_unref (child); } return NULL; -- GitLab
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2