[gnome-bluetooth] lib: Free g_variant_get_strv() results properly
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Free g_variant_get_strv() results properly
- Date: Thu, 6 Oct 2011 13:52:13 +0000 (UTC)
commit f3bbd7871f952f88d52f23cdfc210466d73614a1
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 6 14:49:05 2011 +0100
lib: Free g_variant_get_strv() results properly
lib/bluetooth-client.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 369ea80..49a5eed 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -418,6 +418,8 @@ device_list_uuids (GVariant *variant)
continue;
g_ptr_array_add (ret, g_strdup (uuid));
}
+ g_free (uuids);
+
if (ret->len == 0) {
g_ptr_array_free (ret, TRUE);
return NULL;
@@ -824,6 +826,7 @@ adapter_added (Manager *manager,
for (i = 0; devices[i] != NULL; i++) {
device_created (adapter, devices[i], client);
}
+ g_free (devices);
}
g_variant_unref (variant);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]