mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 12:10:10 +01:00
core: fix crash on device deactivation after 'pending' branch merge
Since the manager now tracks active connections, it needs to hold a reference to the active connection objects too. The active connection teardown code was changed to release that reference (_active_connection_cleanup()) but the creation code was never changed to remove the bits that pass ownership over the initial reference to the NMDevice. Fix that.
This commit is contained in:
parent
a596db45f0
commit
94d6074e26
1 changed files with 1 additions and 2 deletions
|
|
@ -2334,9 +2334,8 @@ internal_activate_device (NMManager *manager,
|
|||
assumed,
|
||||
device,
|
||||
master_device);
|
||||
/* Device takes ownership of 'req' */
|
||||
g_assert (req);
|
||||
nm_device_activate (device, req);
|
||||
g_object_unref (req);
|
||||
|
||||
return NM_ACTIVE_CONNECTION (req);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue