shared: add nm_g_source_destroy_and_unref() helper

This commit is contained in:
Thomas Haller
2019-10-15 17:40:10 +02:00
parent 79b383e3b7
commit c02710bb0f

View File

@@ -894,6 +894,13 @@ nm_g_variant_unref_floating (GVariant *var)
g_variant_unref (var);
}
static inline void
nm_g_source_destroy_and_unref (GSource *source)
{
g_source_destroy (source);
g_source_unref (source);
}
/*****************************************************************************/
static inline int