about summary refs log tree commit diff
path: root/shared/nm-glib-aux
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-01-31 12:13:40 +0100
committerMichael Biebl <biebl@debian.org>2020-01-31 12:13:40 +0100
commit7d548822e672c0e8a580ae52d8f8df7f011103cd (patch)
tree9a592708c2f3245f60b8adf4fb3f2db61dff60b6 /shared/nm-glib-aux
parent55780b62324ba5492ce2670817fc0a8c209cc138 (diff)
parentf3c6d0765dff885e168b94f28e06ecc640315a74 (diff)
Update upstream source from tag 'upstream/1.22.6'
Update to upstream version '1.22.6'
with Debian dir dd9b100f674653057e9629a59eec828fcacf66ad
Diffstat (limited to 'shared/nm-glib-aux')
-rw-r--r--shared/nm-glib-aux/nm-shared-utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/nm-glib-aux/nm-shared-utils.h b/shared/nm-glib-aux/nm-shared-utils.h
index 3bd1afae..3ec19ee1 100644
--- a/shared/nm-glib-aux/nm-shared-utils.h
+++ b/shared/nm-glib-aux/nm-shared-utils.h
@@ -973,6 +973,14 @@ NM_AUTO_DEFINE_FCN0 (GSource *, _nm_auto_destroy_and_unref_gsource, nm_g_source_
 NM_AUTO_DEFINE_FCN0 (GMainContext *, _nm_auto_pop_gmaincontext, g_main_context_pop_thread_default)
 #define nm_auto_pop_gmaincontext nm_auto (_nm_auto_pop_gmaincontext)
 
+static inline gboolean
+nm_source_func_unref_gobject (gpointer user_data)
+{
+	nm_assert (G_IS_OBJECT (user_data));
+	g_object_unref (user_data);
+	return G_SOURCE_REMOVE;
+}
+
 GSource *nm_g_idle_source_new (int priority,
                                GSourceFunc func,
                                gpointer user_data,