[empathy] Fix memleak in empathy_tp_file_accept. Free content of priv->filename before
- From: Lars-Peter Clausen <larsc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Fix memleak in empathy_tp_file_accept. Free content of priv->filename before
- Date: Tue, 21 Apr 2009 04:49:33 -0400 (EDT)
commit 29f9da6eabff9bda68376384b5f18975c6c483d6
Author: Lars-Peter Clausen <lars metafoo de>
Date: Sat Apr 18 02:30:21 2009 +0200
Fix memleak in empathy_tp_file_accept. Free content of priv->filename before
overwriting it.
---
libempathy/empathy-tp-file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 2b65700..1f6bedf 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]