aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-11 20:23:13 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-11 20:23:13 +0800
commit3323cff2c25775a03042024e10fbb66f5854e419 (patch)
tree5f850af0e5ae74570c65d770f4d6247e0c1f1f1a /libempathy-gtk
parent58d82543120383e5cba27bf551cd83b33cefade1 (diff)
downloadgsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar.gz
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar.bz2
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar.lz
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar.xz
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.tar.zst
gsoc2013-empathy-3323cff2c25775a03042024e10fbb66f5854e419.zip
Fix warnings if finalizing a disconnected EmpathyGroupChat
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@776 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-group-chat.c8
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);