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-sim.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmm-glib/mm-sim.h') diff --git a/libmm-glib/mm-sim.h b/libmm-glib/mm-sim.h index 1998bf6e..0f162efd 100644 --- a/libmm-glib/mm-sim.h +++ b/libmm-glib/mm-sim.h @@ -63,6 +63,10 @@ struct _MMSimClass { GType mm_sim_get_type (void); +#if GLIB_CHECK_VERSION(2, 44, 0) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMSim, g_object_unref) +#endif + const gchar *mm_sim_get_path (MMSim *self); gchar *mm_sim_dup_path (MMSim *self); -- cgit v1.2.3-70-g09d2