changeset 4110:d5d4590cb7d2

Fixes memory leaks when adding files to playlist (Bugzilla #34)
author Jussi Judin <jjudin+audacious@iki.fi>
date Tue, 25 Dec 2007 00:57:19 -0600
parents 2d6fd3f630f0
children 3e63b1bee1e7
files src/audacious/playlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Tue Dec 25 00:53:33 2007 -0600
+++ b/src/audacious/playlist.c	Tue Dec 25 00:57:19 2007 -0600
@@ -740,6 +740,7 @@
         
         if (tuple != NULL) {
             const gchar *formatter = tuple_get_string(tuple, FIELD_FORMATTER, NULL);
+            g_free(entry->title);
             entry->title = tuple_formatter_make_title_string(tuple,
                 formatter ? formatter : get_gentitle_format());
             entry->length = tuple_get_int(tuple, FIELD_LENGTH, NULL);