summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 17:48:35 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 17:48:35 +0100
commitd1fd877d83c895bc399682e23f123c94233c42fc (patch)
tree0767cc9aeee57a2690814987ae6227a35561949b /plugins/lastfm
parentfa6b1f9f77cdfae8d59c69a85e6ae9c4b3fe8812 (diff)
refcounted playitems
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 3a8de2c0..d441a8c2 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -618,7 +618,7 @@ lfm_send_submissions (void) {
deadbeef->mutex_lock (lfm_mutex);
for (i = 0; i < LFM_SUBMISSION_QUEUE_SIZE; i++) {
if (lfm_subm_queue[i]) {
- deadbeef->pl_item_free (lfm_subm_queue[i]);
+ deadbeef->pl_item_unref (lfm_subm_queue[i]);
lfm_subm_queue[i] = NULL;
}
}
@@ -633,7 +633,7 @@ lfm_send_submissions (void) {
deadbeef->mutex_lock (lfm_mutex);
for (i = 0; i < LFM_SUBMISSION_QUEUE_SIZE; i++) {
if (lfm_subm_queue[i]) {
- deadbeef->pl_item_free (lfm_subm_queue[i]);
+ deadbeef->pl_item_unref (lfm_subm_queue[i]);
lfm_subm_queue[i] = NULL;
}
}