[librest/wip/rishi/autocleanups: 4/7] rest-param: Add autocleanup
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/rishi/autocleanups: 4/7] rest-param: Add autocleanup
- Date: Wed, 2 Jun 2021 15:03:03 +0000 (UTC)
commit 8d455d689b0a14b2edcdc66ec55fad745ea6b2c0
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 2 16:57:49 2021 +0200
rest-param: Add autocleanup
https://gitlab.gnome.org/GNOME/librest/-/merge_requests/5
rest/rest-param.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/rest/rest-param.h b/rest/rest-param.h
index 066a6af..b1ffbdb 100644
--- a/rest/rest-param.h
+++ b/rest/rest-param.h
@@ -82,6 +82,8 @@ gsize rest_param_get_content_length (RestParam *param);
RestParam *rest_param_ref (RestParam *param);
void rest_param_unref (RestParam *param);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RestParam, rest_param_unref)
+
G_END_DECLS
#endif /* _REST_PARAM */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]