changeset 4111:3e63b1bee1e7

Fixes memory leak in usage of playlist_free() function. (Bugzilla #36)
author Jussi Judin <jjudin+audacious@iki.fi>
date Tue, 25 Dec 2007 01:00:52 -0600
parents d5d4590cb7d2
children 11f33d0e1c34
files src/audacious/playlist.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Tue Dec 25 00:57:19 2007 -0600
+++ b/src/audacious/playlist.c	Tue Dec 25 01:00:52 2007 -0600
@@ -3282,7 +3282,9 @@
 {
     if (!playlist)
         return;
-    
+
+    if (playlist->filename)
+        g_free( playlist->filename );
     g_mutex_free( playlist->mutex );
     g_free( playlist );
     playlist = NULL; //XXX lead to crash? --yaz