diff --git a/at-spi2-atk.spec b/at-spi2-atk.spec index 7342bd4555282231ab8e7c8bb6f305c258e8bf96..3e9ef0a5e01adedcca4b0e3b9c2e46b49e553229 100644 --- a/at-spi2-atk.spec +++ b/at-spi2-atk.spec @@ -1,12 +1,14 @@ Name: at-spi2-atk Version: 2.38.0 -Release: 1 +Release: 2 Summary: GTK+ module for the Assistive Technology Service License: LGPLv2+ URL: https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/ Source0: https://github.com/GNOME/at-spi2-atk/archive/AT_SPI2_ATK_2_38_0.tar.gz +Patch6000: backport-fix-test-memory-leak.patch + BuildRequires: gtk2-devel dbus-devel dbus-glib-devel gcc BuildRequires: libxml2-devel gettext glib2-devel meson BuildRequires: atk-devel >= 2.29.2 @@ -59,6 +61,9 @@ Requires: %{name} = %{version}-%{release} %doc README %changelog +* Sat Oct 22 2022 wangkerong - 2.38.0-2 +- fix memory leak in test + * Tue Jan 28 2020 yanglu - 2.38.0-1 - Version update diff --git a/backport-fix-test-memory-leak.patch b/backport-fix-test-memory-leak.patch new file mode 100644 index 0000000000000000000000000000000000000000..5de964da02a7e7769789742499a9f67aa25e5a05 --- /dev/null +++ b/backport-fix-test-memory-leak.patch @@ -0,0 +1,44 @@ +From 87c898bcbde8452a349b0d472b850a0d7277c446 Mon Sep 17 00:00:00 2001 +From: Shinwoo Kim +Date: Tue, 15 Dec 2020 11:50:49 +0900 +Subject: [PATCH] tests: fix memory leak + +The return value of atspi_accessible_get_name should be released after using it. +--- + tests/atk_test_util.c | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/tests/atk_test_util.c b/tests/atk_test_util.c +index 3e3c08a2..23735230 100644 +--- a/tests/atk_test_util.c ++++ b/tests/atk_test_util.c +@@ -52,6 +52,7 @@ run_app (const char *file_name) + + static AtspiAccessible *try_get_root_obj (AtspiAccessible *obj) + { ++ gchar *name; + int i; + + gint child_count = atspi_accessible_get_child_count (obj, NULL); +@@ -59,10 +60,15 @@ static AtspiAccessible *try_get_root_obj (AtspiAccessible *obj) + return NULL; + } + +- for (i=0; i