[gnome-bluetooth/gnome-3-2] lib: Fix warnings on exit when default adapter changes



commit 0db6d77bd8d4d7005fb6be3988727c3e619369e6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 23 20:48:51 2012 +0000

    lib: Fix warnings on exit when default adapter changes

 lib/bluetooth-client.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index fe79d33..cc677d3 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1036,6 +1036,8 @@ disconnect_from_proxy_helper (GtkTreeModel *model,
 
 	gtk_tree_model_get(model, iter,
 			   BLUETOOTH_COLUMN_PROXY, &proxy, -1);
+	if (proxy == NULL)
+		return FALSE;
 
 	/* adapters */
 	g_signal_handlers_disconnect_by_func(proxy,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]