diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-05-10 16:51:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-05-10 17:07:29 +0100 |
commit | f0554fe4d02977c73c7946cb05fe933d34ea106e (patch) | |
tree | f502b5432e1b31ff58a1a89434d1c4f0d3b096d1 | |
parent | 0db6d77bd8d4d7005fb6be3988727c3e619369e6 (diff) | |
download | gnome-bluetooth-f0554fe4d02977c73c7946cb05fe933d34ea106e.tar.gz |
lib: Fix problem with BluetoothStatusClass refcounts
Conflicts:
lib/bluetooth-client.c
-rw-r--r-- | lib/bluetooth-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index cc677d37..e1ff3a27 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -899,6 +899,8 @@ static void bluetooth_client_init(BluetoothClient *client) DBG("client %p", 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, @@ -1105,8 +1107,6 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass) DBG("class %p", klass); - g_type_class_ref (BLUETOOTH_TYPE_STATUS); - g_type_class_add_private(klass, sizeof(BluetoothClientPrivate)); object_class->finalize = bluetooth_client_finalize; |