summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-02 18:53:04 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-02 18:53:04 +0200
commitcfd7269f3cde81945792d731aae23aba24ef9b0e (patch)
tree99a75e28cfddb4db8c3ee0daeef74487d79ab7ea /playlist.c
parent18105c8b91dbe5a45bff2021c83696eba884444c (diff)
possible crashbug in pls loader
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/playlist.c b/playlist.c
index 4f027460..2e855e2f 100644
--- a/playlist.c
+++ b/playlist.c
@@ -883,7 +883,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play
char title[1024] = "";
char length[20] = "";
LOCK;
- pl_item_ref (after);
while (p < end) {
p = pl_str_skipspaces (p, end);
if (p >= end) {
@@ -907,9 +906,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play
}
}
if (pabort && *pabort) {
- if (after) {
- pl_item_ref (after);
- }
UNLOCK;
return after;
}
@@ -987,9 +983,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play
if (url[0]) {
playItem_t *it = pl_insert_file (after, url, pabort, cb, user_data);
if (it) {
- if (after) {
- pl_item_unref (after);
- }
after = it;
pl_set_item_duration (it, atoi (length));
if (title[0]) {