diff src/scrobbler/plugin.c @ 364:50347c06ec68 trunk

[svn] - make scrobbler behave better - put xspf check back in configure.ac (oops)
author nenolod
date Mon, 11 Dec 2006 06:07:12 -0800
parents 958855dae693
children 1d50eb0b5a0a
line wrap: on
line diff
--- a/src/scrobbler/plugin.c	Mon Dec 11 05:19:44 2006 -0800
+++ b/src/scrobbler/plugin.c	Mon Dec 11 06:07:12 2006 -0800
@@ -101,10 +101,12 @@
 		sc_going = 0;
 	}
 	else
+	{
 		sc_init(username, password);
 
-	g_free(username);
-	g_free(password);
+		g_free(username);
+		g_free(password);
+	}
 	
 	if ((!ge_username || !ge_password) || (!*ge_username || !*ge_password))
 	{
@@ -113,10 +115,12 @@
 		ge_going = 0;
 	}
 	else
+	{
 		gerpok_sc_init(ge_username, ge_password);
 
-	g_free(ge_username);
-	g_free(ge_password);
+		g_free(ge_username);
+		g_free(ge_password);
+	}
 
 	if ((!ha_username || !ha_password) || (!*ha_username || !*ha_password))
 	{
@@ -125,10 +129,12 @@
 		ha_going = 0;
 	}
 	else
+	{
 		hatena_sc_init(ha_username, ha_password);
 
-	g_free(ha_username);
-	g_free(ha_password);
+		g_free(ha_username);
+		g_free(ha_password);
+	}
 
 	m_scrobbler = g_mutex_new();
 	hs_mutex = g_mutex_new();