diff src/audacious/playlist.c @ 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 3218e86beed7
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