diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-19 20:25:12 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-19 20:25:12 +0200 |
commit | 2e0f6bc395f9d4ffed2df17e2394a362ebbaa217 (patch) | |
tree | 373e1fa9a554e795a000250911111dd5ef1cfbf1 | |
parent | 2bc9b07371f4f1c388cc9fea5ca59ea0aa33f4ee (diff) |
ensure playitem is properly unreferenced in vorbis plugin
-rw-r--r-- | plugins/vorbis/vorbis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 90eb7c01..6704f8fe 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -232,10 +232,10 @@ static void cvorbis_free (DB_fileinfo_t *_info) { ogg_info_t *info = (ogg_info_t *)_info; if (info) { + if (info->ptrack) { + deadbeef->pl_item_unref (info->ptrack); + } if (info->info.file) { - if (info->ptrack) { - deadbeef->pl_item_unref (info->ptrack); - } ov_clear (&info->vorbis_file); //fclose (file); //-- ov_clear closes it } |