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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 2b657007b..1f6bedfb2 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -814,6 +814,7 @@ empathy_tp_file_accept (EmpathyTpFile *tp_file,
if (error && *error)
return;
+ g_free (tp_file->priv->filename);
tp_file->priv->filename = g_file_get_basename (gfile);
g_object_notify (G_OBJECT (tp_file), "filename");