summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
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/mpgmad
parentfa6b1f9f77cdfae8d59c69a85e6ae9c4b3fe8812 (diff)
refcounted playitems
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index b954d39e..d2355dc5 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -1059,7 +1059,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
// FIXME! bad numsamples passed to cue
DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, it, buffer.duration*buffer.samplerate, buffer.samplerate);
if (cue_after) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue_after;
}