mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 17:01:22 +01:00
shared: add nm_g_source_destroy_and_unref() helper
(cherry picked from commit c02710bb0f)
This commit is contained in:
parent
c4cb3ecae7
commit
d0bbd9fc0a
1 changed files with 7 additions and 0 deletions
|
|
@ -918,6 +918,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