mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 23:10:29 +01:00
shared: add nm_g_source_destroy_and_unref() helper
This commit is contained in:
parent
79b383e3b7
commit
c02710bb0f
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue