[gnome-bluetooth/gnome-3-2] lib: Fix problem with BluetoothStatusClass refcounts



commit f0554fe4d02977c73c7946cb05fe933d34ea106e
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 10 16:51:52 2012 +0100

    lib: Fix problem with BluetoothStatusClass refcounts
    
    Conflicts:
    
    	lib/bluetooth-client.c

 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 cc677d3..e1ff3a2 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;



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