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-call-properties.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmm-glib/mm-call-properties.h') diff --git a/libmm-glib/mm-call-properties.h b/libmm-glib/mm-call-properties.h index be940dc7..62351937 100644 --- a/libmm-glib/mm-call-properties.h +++ b/libmm-glib/mm-call-properties.h @@ -55,6 +55,10 @@ struct _MMCallPropertiesClass { GType mm_call_properties_get_type (void); +#if GLIB_CHECK_VERSION(2, 44, 0) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMCallProperties, g_object_unref) +#endif + MMCallProperties *mm_call_properties_new (void); void mm_call_properties_set_number (MMCallProperties *self, -- cgit v1.2.3-70-g09d2