summaryrefslogtreecommitdiff
path: root/plugins/m3u
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-20 21:53:25 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-20 21:53:25 +0100
commit01aaf80f8dbfddd58399114ee27e261d5c601c59 (patch)
treeb83c11cb5055d850b13a1275253d3327687e7b00 /plugins/m3u
parent96a1dbc5c984f51f42ff6b7bea51ed73a39d061f (diff)
fixed playlist loaders refcounting bug
Diffstat (limited to 'plugins/m3u')
-rw-r--r--plugins/m3u/m3u.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c
index bedaff6f..c3e76cc2 100644
--- a/plugins/m3u/m3u.c
+++ b/plugins/m3u/m3u.c
@@ -215,9 +215,6 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
after = it;
}
if (pabort && *pabort) {
- if (after) {
- deadbeef->pl_item_ref (after);
- }
free (membuffer);
return after;
}
@@ -226,9 +223,6 @@ load_m3u (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
break;
}
}
- if (after) {
- deadbeef->pl_item_ref (after);
- }
trace ("leave pl_insert_m3u\n");
free (membuffer);
return after;
@@ -325,9 +319,6 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
after = it;
}
if (pabort && *pabort) {
- if (after) {
- deadbeef->pl_item_ref (after);
- }
free (buffer);
return after;
}
@@ -365,9 +356,6 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
after = it;
}
if (pabort && *pabort) {
- if (after) {
- deadbeef->pl_item_ref (after);
- }
free (buffer);
return after;
}
@@ -404,9 +392,6 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
after = it;
}
if (pabort && *pabort) {
- if (after) {
- deadbeef->pl_item_ref (after);
- }
free (buffer);
return after;
}
@@ -448,9 +433,6 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
after = it;
}
}
- if (after) {
- deadbeef->pl_item_ref (after);
- }
free (buffer);
return after;
}