diff src/audacious/playlist.c @ 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 0d300e0b0001
children 3e63b1bee1e7
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);