diff options
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index 1bf9189c..205359a9 100644 --- a/src/manager.c +++ b/src/manager.c @@ -116,7 +116,7 @@ static DBusMessage *set_property(DBusConnection *conn, __connman_session_set_mode(sessionmode); if (sessionmode == TRUE && connman_state_idle == FALSE) { - session_mode_pending = msg; + session_mode_pending = dbus_message_ref(msg); return NULL; } @@ -487,6 +487,9 @@ void __connman_manager_cleanup(void) if (connection == NULL) return; + if (session_mode_pending != NULL) + dbus_message_unref(session_mode_pending); + connman_notifier_unregister(&technology_notifier); g_dbus_unregister_interface(connection, CONNMAN_MANAGER_PATH, |