diff options
Diffstat (limited to 'plugins/vorbis/vorbis.c')
-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 } |