mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 21:20:20 +01:00
libnm: fix leaking init_data in got_object_manager()
Only happens if there are no objects, which would be very unusual.
(cherry picked from commit 4f0a621d43)
This commit is contained in:
parent
5e7dedc48d
commit
5a489ef03e
1 changed files with 2 additions and 1 deletions
|
|
@ -2457,8 +2457,9 @@ got_object_manager (GObject *object, GAsyncResult *result, gpointer user_data)
|
|||
async_inited_obj_nm, init_data);
|
||||
}
|
||||
g_list_free_full (objects, g_object_unref);
|
||||
}
|
||||
|
||||
} else
|
||||
if (init_data->pending_init == 0)
|
||||
init_async_complete (init_data);
|
||||
|
||||
g_signal_connect (priv->object_manager, "notify::name-owner",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue