# HG changeset patch # User Kieran Clancy # Date 1189402819 -34200 # Node ID 3f9c00a2870f23fe79f2b4cfd129c096516adfd6 # Parent dfcb24515a4e8bba15e28d0c3fc7b4537792c09b xspf: use playlist_set_current_name when loading title diff -r dfcb24515a4e -r 3f9c00a2870f src/xspf/xspf.c --- a/src/xspf/xspf.c Mon Sep 10 09:42:48 2007 +0900 +++ b/src/xspf/xspf.c Mon Sep 10 15:10:19 2007 +0930 @@ -302,9 +302,7 @@ xmlChar *title = xmlNodeGetContent(nptr2); if (title && *title) { - gchar *old = plist->title; - plist->title = g_strdup((gchar*)title); - g_free(old); + playlist_set_current_name(plist, (gchar*)title); } xmlFree(title); } else