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:
Dan Williams 2012-12-18 21:06:02 -06:00
parent a596db45f0
commit 94d6074e26

View file

@ -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);
}