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



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

    lib: Fix problem with BluetoothStatusClass refcounts

 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 5ed7c7c..dd4ff15 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;



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