diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-04-18 08:30:21 +0800 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-04-21 16:42:13 +0800 |
commit | 29f9da6eabff9bda68376384b5f18975c6c483d6 (patch) | |
tree | c37657b052b1baa28570c301e5c52a2edbaa3cab | |
parent | ad9fe17b0f8e23aabb5a05f73ee95e05db918399 (diff) | |
download | gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar.gz gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar.bz2 gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar.lz gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar.xz gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.tar.zst gsoc2013-empathy-29f9da6eabff9bda68376384b5f18975c6c483d6.zip |
Fix memleak in empathy_tp_file_accept. Free content of priv->filename before
overwriting it.
-rw-r--r-- | 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 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"); |