changeset 2097:75100f6b216a trunk

[svn] - make sure &default_playlist (temporary construct) has full padding. probably won't help this, but it seems like it wont hurt, either.
author nenolod
date Mon, 11 Dec 2006 05:47:05 -0800
parents 25e91bba434d
children 425963ded156
files ChangeLog audacious/playlist.c
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Dec 11 05:29:44 2006 -0800
+++ b/ChangeLog	Mon Dec 11 05:47:05 2006 -0800
@@ -1,3 +1,11 @@
+2006-12-11 13:29:44 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3197]
+  - avoid a crash
+  
+  trunk/audacious/playlist.c |   28 ++++++++++++++--------------
+  1 file changed, 14 insertions(+), 14 deletions(-)
+
+
 2006-12-11 13:09:02 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3195]
   - update playlist UI
--- a/audacious/playlist.c	Mon Dec 11 05:29:44 2006 -0800
+++ b/audacious/playlist.c	Mon Dec 11 05:47:05 2006 -0800
@@ -77,7 +77,11 @@
 	NULL,
 	NULL,
 	NULL,
-	NULL
+	NULL,
+	0,
+	0,
+	0,
+	0,
 };
 
 /* If this is set to TRUE, we do not probe upon playlist add.
@@ -863,7 +867,8 @@
     g_return_if_fail(playlist != NULL);
 
     if (playlist->position) {
-        g_free(playlist->position->title);
+/* XXX: what is playlist->position->title is not dup'd? */
+//        g_free(playlist->position->title);
         playlist->position->title = g_strdup(title);
         playlist->position->length = length;
     }