[gnome-bluetooth/gnome-3-2] lib: Fix some tree path leaks
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-3-2] lib: Fix some tree path leaks
- Date: Thu, 6 Oct 2011 13:51:27 +0000 (UTC)
commit 8912c715325c5c49828f1284396f798d603c31ff
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 6 14:49:26 2011 +0100
lib: Fix some tree path leaks
lib/bluetooth-client.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 585a202..86680c3 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -974,7 +974,8 @@ _bluetooth_client_get_default_adapter_powered (BluetoothClient *self)
path = gtk_tree_row_reference_get_path (priv->default_adapter);
gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->store), &iter, path);
gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter, BLUETOOTH_COLUMN_POWERED, &ret, -1);
-
+ gtk_tree_path_free (path);
+
return ret;
}
@@ -1316,6 +1317,7 @@ DBusGProxy *bluetooth_client_get_default_adapter(BluetoothClient *client)
gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->store), &iter, path);
gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter,
BLUETOOTH_COLUMN_PROXY, &adapter, -1);
+ gtk_tree_path_free (path);
return adapter;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]