aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-file.c')
-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)