[librest/wip/rishi/autocleanups: 6/7] rest-xml-node: Add autocleanup




commit 91bc829b9b47ff7ecd9e20ab9b73735f2594e513
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 2 16:58:41 2021 +0200

    rest-xml-node: Add autocleanup

 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]