wifi: fix leaking fake AP in NMDeviceWifi's act_stage1_prepare()

Fixes: 96f40dcdcd
(cherry picked from commit ef61d7909f)
(cherry picked from commit d08530ac4b)
(cherry picked from commit 6c4c12c796)
(cherry picked from commit 4a345b2e78)
(cherry picked from commit ae112d0070)
(cherry picked from commit 0a95b1a593)
(cherry picked from commit 087fb85969)
This commit is contained in:
Thomas Haller 2018-09-13 16:20:17 +02:00
parent 8b4c1cddfe
commit 27be61ec79

View file

@ -2375,6 +2375,7 @@ act_stage1_prepare (NMDevice *device, NMDeviceStateReason *reason)
set_current_ap (self, ap, FALSE);
nm_active_connection_set_specific_object (NM_ACTIVE_CONNECTION (req),
nm_exported_object_get_path (NM_EXPORTED_OBJECT (ap)));
g_object_unref (ap);
return NM_ACT_STAGE_RETURN_SUCCESS;
done: