aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:18:11 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:18:11 +0800
commit737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5 (patch)
tree72656fa5b307da52334d504756ee89a7b0c73ff2
parent641cde5cf6b5531df6fc6567d177059dfb3801d9 (diff)
downloadgsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar.gz
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar.bz2
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar.lz
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar.xz
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.tar.zst
gsoc2013-empathy-737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5.zip
Removed pointless test whether the tp_file is a GObject in the finalize function. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1806
-rw-r--r--libempathy/empathy-tp-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index fb77a4e26..df5b7da2e 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -347,8 +347,7 @@ tp_file_finalize (GObject *object)
tp_file_destroy_cb, object);
tp_cli_channel_call_close (tp_file->priv->channel, -1, NULL, NULL,
NULL, NULL);
- if (G_IS_OBJECT (tp_file->priv->channel))
- g_object_unref (tp_file->priv->channel);
+ g_object_unref (tp_file->priv->channel);
}
if (tp_file->priv->factory)