Blob Blame History Raw
diff -Nur audacious-plugins-2.2-orig/src/scrobbler/plugin.c audacious-plugins-2.2-scrobbler/src/scrobbler/plugin.c
--- audacious-plugins-2.2-orig/src/scrobbler/plugin.c	2009-11-22 23:49:53.000000000 +0100
+++ audacious-plugins-2.2-scrobbler/src/scrobbler/plugin.c	2010-02-15 14:25:48.000000000 +0100
@@ -253,16 +253,15 @@
 
 			playlist = aud_playlist_get_active();
 			pos = aud_playlist_get_position(playlist);
-			tuple = (Tuple*) aud_playlist_entry_get_tuple(playlist, pos);
+			tuple = tuple_copy( (Tuple*) aud_playlist_entry_get_tuple(playlist, pos) );
 
 			if (tuple == NULL)
 				continue;
 
-			mowgli_object_ref(tuple);
 
 			if (ishttp(aud_tuple_get_string(tuple, FIELD_FILE_NAME, NULL)))
 			{
-				mowgli_object_unref(tuple);
+				tuple_free(tuple);
 				continue;
 			}
 
@@ -285,7 +284,7 @@
 				pdebug("tuple does not contain an artist or a title, not submitting.", DEBUG);
 
 			submit = FALSE;
-			mowgli_object_unref(tuple);
+			tuple_free(tuple);
 		}
 
 		g_get_current_time(&sleeptime);