changeset 1032:15e8890cb54d trunk

[svn] - fix memory-leak for protocol 1.2 code - disable accidental enabling of debugging code
author nenolod
date Sat, 12 May 2007 00:56:32 -0700
parents 3707a3efcc9c
children 34b998b6e3b2
files ChangeLog src/scrobbler/scrobbler.c src/scrobbler/settings.h
diffstat 3 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat May 12 00:37:48 2007 -0700
+++ b/ChangeLog	Sat May 12 00:56:32 2007 -0700
@@ -1,3 +1,12 @@
+2007-05-12 07:37:48 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2226]
+  - protocol 1.2: use interval 1
+  
+  trunk/src/scrobbler/scrobbler.c |    2 +-
+  trunk/src/scrobbler/settings.h  |    6 +++---
+  2 files changed, 4 insertions(+), 4 deletions(-)
+
+
 2007-05-12 07:30:49 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2224]
   - enforce audioscrobbler rules on queued tracks
--- a/src/scrobbler/scrobbler.c	Sat May 12 00:37:48 2007 -0700
+++ b/src/scrobbler/scrobbler.c	Sat May 12 00:56:32 2007 -0700
@@ -407,7 +407,6 @@
 			SCROBBLER_HS_URL, SCROBBLER_VERSION,
 			SCROBBLER_CLI_ID, SCROBBLER_IMPLEMENTATION, sc_username, time(NULL),
 			auth_tmp);
-	printf("--> %s\n", buf);
 	g_free(auth_tmp);
 
 	curl = curl_easy_init();
@@ -646,8 +645,9 @@
 	curl_easy_setopt(curl, CURLOPT_TIMEOUT, SCROBBLER_SB_WAIT);
 
 	status = curl_easy_perform(curl);
+	curl_easy_cleanup(curl);
 
-	curl_easy_cleanup(curl);
+	g_free(entry);
 
 	if (status) {
 		pdebug(sc_curl_errbuf, DEBUG);
--- a/src/scrobbler/settings.h	Sat May 12 00:37:48 2007 -0700
+++ b/src/scrobbler/settings.h	Sat May 12 00:56:32 2007 -0700
@@ -3,9 +3,9 @@
 #ifndef __SCROBBLER_CONFIG_H__
 #define __SCROBBLER_CONFIG_H__
 
-#define DEBUG 1
-#define META_DEBUG 1
-#define SUB_DEBUG 1
+#define DEBUG 0
+#define META_DEBUG 0
+#define SUB_DEBUG 0
 #define CLIENT "Audacious"
 #define USER_AGENT "AudioScrobbler/1.1" PACKAGE_NAME "/" PACKAGE_VERSION
 #define MAKE_BMP