]> git.0d.be Git - empathy.git/commitdiff
Removed pointless test whether the tp_file is a GObject in the finalize function...
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 21 Nov 2008 16:18:11 +0000 (16:18 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:18:11 +0000 (16:18 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1806

libempathy/empathy-tp-file.c

index fb77a4e260dd85416cb20b834b7782d1e8dcfaee..df5b7da2e05b0cb0bf81aaf15ae8614778bd44da 100644 (file)
@@ -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)