Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
4109:2d6fd3f630f0 | 4110:d5d4590cb7d2 |
---|---|
738 } else | 738 } else |
739 playlist->entries = g_list_insert(playlist->entries, entry, pos++); | 739 playlist->entries = g_list_insert(playlist->entries, entry, pos++); |
740 | 740 |
741 if (tuple != NULL) { | 741 if (tuple != NULL) { |
742 const gchar *formatter = tuple_get_string(tuple, FIELD_FORMATTER, NULL); | 742 const gchar *formatter = tuple_get_string(tuple, FIELD_FORMATTER, NULL); |
743 g_free(entry->title); | |
743 entry->title = tuple_formatter_make_title_string(tuple, | 744 entry->title = tuple_formatter_make_title_string(tuple, |
744 formatter ? formatter : get_gentitle_format()); | 745 formatter ? formatter : get_gentitle_format()); |
745 entry->length = tuple_get_int(tuple, FIELD_LENGTH, NULL); | 746 entry->length = tuple_get_int(tuple, FIELD_LENGTH, NULL); |
746 entry->tuple = tuple; | 747 entry->tuple = tuple; |
747 } | 748 } |