summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binding/bluetooth-map-api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c
index 798c9fa..d05709e 100644
--- a/binding/bluetooth-map-api.c
+++ b/binding/bluetooth-map-api.c
@@ -124,9 +124,11 @@ static void unsubscribe(afb_req_t request)
static void map_request_message(struct map_state *ns, const gchar *path)
{
- GVariant *params =
+ GVariant *reply, *params =
g_variant_new("(&sb)", "", g_variant_new_boolean(FALSE));
- bluez_call(ns, BLUEZ_AT_MESSAGE, path, "Get", params, NULL);
+ reply = bluez_call(ns, BLUEZ_AT_MESSAGE, path, "Get", params, NULL);
+ if (reply)
+ g_variant_unref(reply);
}
static void map_notification_event(struct map_state *ns, gchar *filename)