aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:24:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:24:36 +0800
commit7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6 (patch)
treeda59f2854e675d31b2483dcd84d7ff0608e30408 /src/empathy.c
parent11418f5e077e54289515bb89b57e56acd36b08ce (diff)
downloadgsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar.gz
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar.bz2
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar.lz
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar.xz
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.tar.zst
gsoc2013-empathy-7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6.zip
Fix ref counting of tp_file, make it singleton per channel, and add a _keep_alive method that adds a tmp ref until the transfer finishes.
svn path=/trunk/; revision=1904
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index c05f005ac..fc9640556 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -112,6 +112,8 @@ dispatch_channel_cb (EmpathyDispatcher *dispatcher,
ft_manager = empathy_ft_manager_get_default ();
tp_file = empathy_tp_file_new (channel);
empathy_ft_manager_add_tp_file (ft_manager, tp_file);
+ empathy_tp_file_keep_alive (tp_file);
+ g_object_unref (tp_file);
}
g_free (channel_type);