From 48428c4828aae246c7101e5a36146e65441dd948 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:13:51 +0000 Subject: Added a workaround to EmpathyTpFile's finalize function so it doesn't run g_object_unref on non-GObjects. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1739 --- libempathy/empathy-tp-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c index 0b99c03f4..26b33ae87 100644 --- a/libempathy/empathy-tp-file.c +++ b/libempathy/empathy-tp-file.c @@ -254,7 +254,8 @@ tp_file_finalize (GObject *object) g_signal_handlers_disconnect_by_func (priv->channel, tp_file_destroy_cb, object); tp_cli_channel_run_close (priv->channel, -1, NULL, NULL); - g_object_unref (priv->channel); + if (G_IS_OBJECT (priv->channel)) + g_object_unref (priv->channel); } if (priv->factory) -- cgit v1.2.3