summaryrefslogtreecommitdiff
path: root/obexd/src
diff options
context:
space:
mode:
authorGowtham Anandha Babu <gowtham.ab@samsung.com>2014-09-22 12:42:08 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-09-22 19:06:48 +0300
commitcf5361615e4bf2468fe963f690b2c398071e215f (patch)
tree401662cc0502904edc9b552b591f3fd549b74f12 /obexd/src
parenta24856291bcd0db8d4deece223e76856ff835b9f (diff)
downloadbluez-cf5361615e4bf2468fe963f690b2c398071e215f.tar.gz
obexd: Fix the double check for agent
Removes the check for NULL agent.
Diffstat (limited to 'obexd/src')
-rw-r--r--obexd/src/manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 326e56f94..97ae278da 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -521,8 +521,7 @@ void manager_cleanup(void)
/* FIXME: Release agent? */
- if (agent)
- agent_free(agent);
+ agent_free(agent);
g_dbus_detach_object_manager(connection);