From 5dc79ce6069a388db8c94a9fbe35cfee07445bb0 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 17 Dec 2018 15:18:07 +0100 Subject: libmm-glib: add autoptr cleanup functions for all types https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/100 --- libmm-glib/mm-network-timezone.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmm-glib/mm-network-timezone.h') diff --git a/libmm-glib/mm-network-timezone.h b/libmm-glib/mm-network-timezone.h index 2bbb3058..ca485a2b 100644 --- a/libmm-glib/mm-network-timezone.h +++ b/libmm-glib/mm-network-timezone.h @@ -69,6 +69,10 @@ struct _MMNetworkTimezoneClass { GType mm_network_timezone_get_type (void); +#if GLIB_CHECK_VERSION(2, 44, 0) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMNetworkTimezone, g_object_unref) +#endif + gint32 mm_network_timezone_get_offset (MMNetworkTimezone *self); gint32 mm_network_timezone_get_dst_offset (MMNetworkTimezone *self); gint32 mm_network_timezone_get_leap_seconds (MMNetworkTimezone *self); -- cgit v1.2.3-70-g09d2