aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:13:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:13:51 +0800
commit48428c4828aae246c7101e5a36146e65441dd948 (patch)
tree8a60d5d302a8b630fee6c29d3b52236e9c8337b3 /libempathy
parent6bab1e27908d283ca17d8ac09c7b61196b7025b9 (diff)
downloadgsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar.gz
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar.bz2
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar.lz
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar.xz
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.tar.zst
gsoc2013-empathy-48428c4828aae246c7101e5a36146e65441dd948.zip
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 <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1739
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-file.c3
1 files changed, 2 insertions, 1 deletions
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)