summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-09-04 03:30:23 +0200
committerBastien Nocera <hadess@hadess.net>2013-09-04 03:35:11 +0200
commit63efba0b584890df57c228fe54e2cdf0f4815dae (patch)
tree98b698d35da36c51108a2c747f7cff575c643133 /lib
parentc43e25947cbc8c47229a9b8df3dec74d50eaf748 (diff)
downloadgnome-bluetooth-63efba0b584890df57c228fe54e2cdf0f4815dae.tar.gz
lib: Fix possible crash if there's no default adapter
Or it's already been unset. https://bugzilla.gnome.org/show_bug.cgi?id=706924
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 4081f669..0130aff7 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1098,7 +1098,7 @@ static void bluetooth_client_finalize(GObject *client)
g_object_unref(priv->store);
- gtk_tree_row_reference_free (priv->default_adapter);
+ g_clear_pointer (&priv->default_adapter, gtk_tree_row_reference_free);
G_OBJECT_CLASS(bluetooth_client_parent_class)->finalize(client);
}