[librest/wip/rishi/autocleanups: 5/7] rest-proxy-auth: Add autocleanup




commit 1f2dc04a2c8f880b15847337e4ceee3f481463c9
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 2 16:58:23 2021 +0200

    rest-proxy-auth: Add autocleanup

 rest/rest-proxy-auth.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/rest/rest-proxy-auth.h b/rest/rest-proxy-auth.h
index 816aaa9..d4600fb 100644
--- a/rest/rest-proxy-auth.h
+++ b/rest/rest-proxy-auth.h
@@ -68,6 +68,8 @@ void rest_proxy_auth_pause (RestProxyAuth *auth);
 void rest_proxy_auth_unpause (RestProxyAuth *auth);
 void rest_proxy_auth_cancel (RestProxyAuth *auth);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (RestProxyAuth, g_object_unref)
+
 G_END_DECLS
 
 #endif /* _REST_PROXY_AUTH */


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