summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-05-10 16:51:52 +0100
committerBastien Nocera <hadess@hadess.net>2012-05-10 16:52:19 +0100
commit49d2ca03e879ab2558a0bc635cbd46401f429107 (patch)
tree196f223603364071eca7e04b3a6d6caab000833d /lib
parentd81e3febf5eeab7b1b45f8c3e6d3a24e0b81a326 (diff)
downloadgnome-bluetooth-49d2ca03e879ab2558a0bc635cbd46401f429107.tar.gz
lib: Fix problem with BluetoothStatusClass refcounts
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 5ed7c7cd..dd4ff155 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1003,6 +1003,8 @@ static void bluetooth_client_init(BluetoothClient *client)
{
BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
+ g_type_class_ref (BLUETOOTH_TYPE_STATUS);
+
priv->store = gtk_tree_store_new(_BLUETOOTH_NUM_COLUMNS, G_TYPE_OBJECT,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_UINT, G_TYPE_STRING,
@@ -1284,8 +1286,6 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass)
GObjectClass *object_class = (GObjectClass *) klass;
GError *error = NULL;
- g_type_class_ref (BLUETOOTH_TYPE_STATUS);
-
g_type_class_add_private(klass, sizeof(BluetoothClientPrivate));
object_class->finalize = bluetooth_client_finalize;