From 737daddb3938c81bb1c4e53c0a3fd7dd8aa51bc5 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:18:11 +0000 Subject: Removed pointless test whether the tp_file is a GObject in the finalize function. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1806 --- libempathy/empathy-tp-file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libempathy') 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) -- cgit v1.2.3