[librest/wip/rishi/autocleanups: 6/7] rest-xml-node: Add autocleanup
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/rishi/autocleanups: 6/7] rest-xml-node: Add autocleanup
- Date: Wed, 2 Jun 2021 15:03:03 +0000 (UTC)
commit cb7ba50ec6829a7a49e092beec01af60d3c901d4
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 2 16:58:41 2021 +0200
rest-xml-node: Add autocleanup
https://gitlab.gnome.org/GNOME/librest/-/merge_requests/5
rest/rest-xml-node.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/rest/rest-xml-node.h b/rest/rest-xml-node.h
index 335bd64..7e451c4 100644
--- a/rest/rest-xml-node.h
+++ b/rest/rest-xml-node.h
@@ -68,6 +68,8 @@ void rest_xml_node_add_attr (RestXmlNode *node,
const char *value);
void rest_xml_node_set_content (RestXmlNode *node, const char *value);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RestXmlNode, rest_xml_node_unref)
+
G_END_DECLS
#endif /* _REST_XML_NODE */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]