changeset 786:f2b43ca69f3c trunk

[svn] - leak fix, take 1
author nenolod
date Fri, 03 Mar 2006 10:11:53 -0800
parents 20a62ae86b6e
children e776161c16db
files Plugins/General/scrobbler/xmms_scrobbler.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/General/scrobbler/xmms_scrobbler.c	Thu Mar 02 16:07:31 2006 -0800
+++ b/Plugins/General/scrobbler/xmms_scrobbler.c	Fri Mar 03 10:11:53 2006 -0800
@@ -278,6 +278,12 @@
 			SUB_DEBUG);
 		changed = 1;
 		seeked = 0;
+
+		if (file_p != NULL)
+		{
+			g_free(file_p);
+			file_p = NULL;
+		}
 	  }else if( seeked ) { 
 		seeked = 1;
 		pdebug("*** SEEK ***", SUB_DEBUG);
@@ -331,6 +337,8 @@
 	  }
 	}
 
+	g_free(file_p);
+
 	/* keep current value for next iteration */
 	ps_p = ps_c;
 	file_p = file_c;