agent-manager: have NMAgentManager own NMSessionMonitor instance

The latter makes use of the former. Ensure that NMSessionMonitor
lives long enough.
This commit is contained in:
Thomas Haller 2015-08-11 12:48:27 +02:00
parent 7168283871
commit 67bcaca75e

View file

@ -1543,6 +1543,8 @@ constructed (GObject *object)
NM_AUTH_MANAGER_SIGNAL_CHANGED,
G_CALLBACK (authority_changed_cb),
object);
NM_UTILS_KEEP_ALIVE (object, nm_session_monitor_get (), "NMAgentManager-depends-on-NMSessionMonitor");
}
static void