summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-09-26 13:55:39 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-26 15:20:29 +0300
commit2c2fd6ef08fab323ebd20762f87cd3c8529b7c5e (patch)
tree212c65c71ed0b40a565f284cf919b92f9e0128f8 /src/manager.c
parentdb246c8ff41a707c70f8eafde40e16571904c223 (diff)
downloadconnman-2c2fd6ef08fab323ebd20762f87cd3c8529b7c5e.tar.gz
connman-2c2fd6ef08fab323ebd20762f87cd3c8529b7c5e.tar.bz2
connman-2c2fd6ef08fab323ebd20762f87cd3c8529b7c5e.zip
manager: Manage properly the pending message for session mode
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c5
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,