empathy r776 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Mar 11 12:23:13 2008
New Revision: 776
URL: http://svn.gnome.org/viewvc/empathy?rev=776&view=rev

Log:
Fix warnings if finalizing a disconnected EmpathyGroupChat


Modified:
   trunk/libempathy-gtk/empathy-group-chat.c

Modified: trunk/libempathy-gtk/empathy-group-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-group-chat.c	(original)
+++ trunk/libempathy-gtk/empathy-group-chat.c	Tue Mar 11 12:23:13 2008
@@ -161,8 +161,12 @@
 	
 	g_free (priv->name);
 	g_free (priv->topic);
-	g_object_unref (priv->store);
-	g_object_unref (priv->tp_chat);	
+	if (priv->store) {
+		g_object_unref (priv->store);
+	}
+	if (priv->tp_chat) {
+		g_object_unref (priv->tp_chat);	
+	}
 	g_completion_free (priv->completion);
 
 	G_OBJECT_CLASS (empathy_group_chat_parent_class)->finalize (object);



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