From 3627a21a62fe61592d92968e3dc67a78fde63bf0 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Pawe=C5=82=20Stawicki?=
Date: Thu, 15 Mar 2018 18:21:04 +0100
Subject: [PATCH] [prevent][109656] Fix for resource leakage
Change-Id: Ic2abd2a7c7eafd530d147711d8881fb87788e140
---
test/memory.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/test/memory.c b/test/memory.c
index df5e0a1..2db9871 100644
--- a/test/memory.c
+++ b/test/memory.c
@@ -13,18 +13,17 @@ basic (AtspiAccessible *obj)
gint count;
gint i;
AtspiAccessible *accessible;
- GError *error = NULL;
- str = atspi_accessible_get_name (obj, &error);
+ str = atspi_accessible_get_name (obj, NULL);
if (str)
g_free (str);
accessible = atspi_accessible_get_parent (obj, NULL);
if (accessible)
g_object_unref (accessible);
- count = atspi_accessible_get_child_count (obj, &error);
+ count = atspi_accessible_get_child_count (obj, NULL);
for (i = 0; i < count; i++)
{
- accessible = atspi_accessible_get_child_at_index (obj, i, &error);
+ accessible = atspi_accessible_get_child_at_index (obj, i, NULL);
if (accessible)
g_object_unref (accessible);
}
--
2.7.4