From 29f9da6eabff9bda68376384b5f18975c6c483d6 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sat, 18 Apr 2009 02:30:21 +0200 Subject: Fix memleak in empathy_tp_file_accept. Free content of priv->filename before overwriting it. --- libempathy/empathy-tp-file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libempathy/empathy-tp-file.c') 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"); -- cgit v1.2.3