From: Xavier Claessens Date: Tue, 11 Mar 2008 12:23:13 +0000 (+0000) Subject: Fix warnings if finalizing a disconnected EmpathyGroupChat X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=ad0f65b3c92bca268d29b8d07c840f07ed55189e Fix warnings if finalizing a disconnected EmpathyGroupChat svn path=/trunk/; revision=776 --- diff --git a/libempathy-gtk/empathy-group-chat.c b/libempathy-gtk/empathy-group-chat.c index e9a4b170..007e6947 100644 --- a/libempathy-gtk/empathy-group-chat.c +++ b/libempathy-gtk/empathy-group-chat.c @@ -161,8 +161,12 @@ group_chat_finalize (GObject *object) 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);