[at-spi2-core: 4/6] atk-object-xml-loader.c: Use xmlFree() instead of free() for the result of xmlGetProp()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 4/6] atk-object-xml-loader.c: Use xmlFree() instead of free() for the result of xmlGetProp()
- Date: Thu, 7 Jul 2022 22:43:57 +0000 (UTC)
commit 07dba319650968d5610ef2e988e75f7dd6f005c6
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jul 7 15:11:13 2022 -0500
atk-object-xml-loader.c: Use xmlFree() instead of free() for the result of xmlGetProp()
tests/at-spi2-atk/atk-object-xml-loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/at-spi2-atk/atk-object-xml-loader.c b/tests/at-spi2-atk/atk-object-xml-loader.c
index 01d72497..da24d8a5 100644
--- a/tests/at-spi2-atk/atk-object-xml-loader.c
+++ b/tests/at-spi2-atk/atk-object-xml-loader.c
@@ -138,7 +138,7 @@ get_atk_attribute (xmlNode *node, const xmlChar *attr)
tmp->name = g_strdup ((const char *)attr);
tmp->value = g_strdup ((const char *)str);
- free (str);
+ xmlFree (str);
return tmp;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]