diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-11 20:23:13 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-11 20:23:13 +0800 |
commit | ad0f65b3c92bca268d29b8d07c840f07ed55189e (patch) | |
tree | 5f850af0e5ae74570c65d770f4d6247e0c1f1f1a | |
parent | 9f6aadfcfb2dcf2b888a8843b32f76d97c1a0c04 (diff) | |
download | gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar.gz gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar.bz2 gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar.lz gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar.xz gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.tar.zst gsoc2013-empathy-ad0f65b3c92bca268d29b8d07c840f07ed55189e.zip |
Fix warnings if finalizing a disconnected EmpathyGroupChat
svn path=/trunk/; revision=776
-rw-r--r-- | libempathy-gtk/empathy-group-chat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-group-chat.c b/libempathy-gtk/empathy-group-chat.c index e9a4b1700..007e69476 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); |