Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
13cc3dcaeb
!31 [sync] PR-27: add gsettings-desktop-schemas to fix check fail
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2024-04-23 11:13:35 +00:00
lingsheng
e7705e3798 add gsettings-desktop-schemas to fix check fail
(cherry picked from commit 659456cf87a700ea2cde50c053dc343d3d01acfb)
2024-04-23 16:52:22 +08:00
openeuler-ci-bot
0f64191dfa
!22 [sync] PR-17: 【轻量级 PR】:enable make check
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-11-14 02:01:38 +00:00
周文培
5928115ac4 enable make check
Signed-off-by: 周文培 <zhouwenpei050@chinasoftinc.com>
(cherry picked from commit 26e31546e4135011ea829b1b08028e82e8608bcc)
2023-11-14 09:28:59 +08:00
openeuler-ci-bot
7658ae18c7
!14 【轻量级 PR】:fix memory leak in test
From: @kerongw 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-10-25 01:55:31 +00:00
kerongw
9d61eae969
fix memory leak in test
Signed-off-by: kerongw <wangkerong@h-partners.com>
2022-10-22 07:58:14 +00:00
openeuler-ci-bot
230489d34d
!11 [sync] PR-10: update changelog date
From: @openeuler-sync-bot 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2022-06-10 01:28:54 +00:00
tanyulong2021
ab889637c1 update changelog date
(cherry picked from commit cde2d0995e3b9502c665e616850c0efd666ba57c)
2022-06-10 09:22:17 +08:00
openeuler-ci-bot
3eb2a97c23 !9 Version upgrade to at-spi2-atk-2.38.0
From: @yangl777
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-02-01 11:26:34 +08:00
renmingshuai
6ee103944d upgrade version to 2.38.0 2021-02-01 10:29:12 +08:00
5 changed files with 103 additions and 7 deletions

Binary file not shown.

BIN
AT_SPI2_ATK_2_38_0.tar.gz Normal file

Binary file not shown.

View File

@ -1,19 +1,23 @@
Name: at-spi2-atk
Version: 2.34.2
Release: 1
Version: 2.38.0
Release: 4
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_34_2.tar.gz
Source0: https://github.com/GNOME/at-spi2-atk/archive/AT_SPI2_ATK_2_38_0.tar.gz
Patch6000: backport-fix-test-memory-leak.patch
Patch6001: backport-also-fix-ref-leak-in-try_get_root.patch
BuildRequires: gtk2-devel dbus-devel dbus-glib-devel gcc
BuildRequires: libxml2-devel gettext glib2-devel meson
BuildRequires: atk-devel >= 2.29.2
BuildRequires: at-spi2-core-devel >= 2.29.1
BuildRequires: atk-devel >= 2.29.2 dbus-x11
BuildRequires: at-spi2-core-devel >= 2.33.2
BuildRequires: gsettings-desktop-schemas
Requires: atk >= 2.33.3
Requires: at-spi2-core >= 2.29.1
Requires: at-spi2-core >= 2.33.2
%description
At-Spi2 is a protocol over DBus, toolkit widgets use it to provide
@ -33,7 +37,7 @@ Requires: %{name} = %{version}-%{release}
%package_help
%prep
%autosetup -n at-spi2-atk-AT_SPI2_ATK_2_34_2 -p1
%autosetup -n at-spi2-atk-AT_SPI2_ATK_2_38_0 -p1
%build
%meson
@ -42,6 +46,9 @@ Requires: %{name} = %{version}-%{release}
%install
%meson_install
%check
dbus-launch ninja -C %{_host} test
%files
%doc AUTHORS
%license COPYING
@ -59,6 +66,18 @@ Requires: %{name} = %{version}-%{release}
%doc README
%changelog
* Tue Apr 23 2024 lingsheng <lingsheng1@h-partners.com> - 2.38.0-4
- add gsettings-desktop-schemas to fix check fail
* Fri Sep 15 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.38.0-3
- enable make check
* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 2.38.0-2
- fix memory leak in test
* Tue Jan 28 2020 yanglu <yanglu60@huawei.com> - 2.38.0-1
- Version update
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 2.34.2-1
- Version update

View File

@ -0,0 +1,33 @@
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

View File

@ -0,0 +1,44 @@
From 87c898bcbde8452a349b0d472b850a0d7277c446 Mon Sep 17 00:00:00 2001
From: Shinwoo Kim <cinoo.kim@samsung.com>
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<child_count; i++) {
- AtspiAccessible *child = atspi_accessible_get_child_at_index (obj,i, NULL);
- if (child && !strcmp (atspi_accessible_get_name (child, NULL), "root_object"))
- return child;
+ 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 (!strcmp (name, "root_object")) {
+ g_free(name);
+ return child;
+ }
+ g_free(name);
+ }
}
return NULL;
--
GitLab