aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2012-03-27 16:43:47 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-30 13:23:20 +0300
commit14131675502b14fc83b59b12573c2e88ade1e467 (patch)
tree31ca660aa26ae8713e1b893ecaedc235c1a5fbf8 /attrib/client.c
parent140e2169dd6bae286145940930fe47ee5dffb806 (diff)
downloadbluez-14131675502b14fc83b59b12573c2e88ade1e467.tar.gz
bluez-14131675502b14fc83b59b12573c2e88ade1e467.tar.xz
bluez-14131675502b14fc83b59b12573c2e88ade1e467.zip
attrib: Fix missing D-Bus message unref on DiscoverCharacteristics
This patch fixes a missing message unref when DiscoverCharacteristics on Generic Attribute finishes.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/attrib/client.c b/attrib/client.c
index ce78ed6b..1455c310 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -916,6 +916,9 @@ static void char_discovered_cb(GSList *characteristics, guint8 status,
reply = create_discover_char_reply(gatt->query->msg, gatt->chars);
fail:
+ dbus_message_unref(gatt->query->msg);
+ gatt->query->msg = NULL;
+
g_dbus_send_message(gatt->conn, reply);
query_list_remove(gatt, current);
g_free(current);