changeset 4100:e1ecacef3789

Fix memory leak in filter_by_extension() (Bugzilla #29)
author Jussi Judin <jjudin+audacious@iki.fi>
date Wed, 19 Dec 2007 00:55:07 -0600
parents b3830c28397e
children 97efe5d31594
files src/audacious/playlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Wed Dec 19 00:52:56 2007 -0600
+++ b/src/audacious/playlist.c	Wed Dec 19 00:55:07 2007 -0600
@@ -3408,6 +3408,7 @@
 
 
     base = g_path_get_basename(filename);
+    g_free(filename);
     ext = strrchr(base, '.');
 
     if(!ext) {