[librest/wip/rishi/autocleanups: 3/7] rest-params: Add autocleanup




commit 92c180369c32d04f0df859e2f7cbbffc24c74665
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 2 16:56:01 2021 +0200

    rest-params: Add autocleanup
    
    https://gitlab.gnome.org/GNOME/librest/-/merge_requests/5

 rest/rest-params.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/rest/rest-params.h b/rest/rest-params.h
index d35411b..d69cc6e 100644
--- a/rest/rest-params.h
+++ b/rest/rest-params.h
@@ -51,6 +51,8 @@ gboolean rest_params_iter_next (RestParamsIter *iter, const char **name, RestPar
 RestParams *rest_params_ref (RestParams *params);
 void rest_params_unref (RestParams *params);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RestParams, rest_params_unref)
+
 G_END_DECLS
 
 #endif /* _REST_PARAMS */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]