diff options
author | 2010-05-19 20:58:53 +0200 | |
---|---|---|
committer | 2010-05-19 20:58:53 +0200 | |
commit | 6ce1f73ca437f7bdfb52772ce8422ab909345850 (patch) | |
tree | 3a541ff6022cce7aeed288e6010e801b4af44e0f /plugins/vorbis/vorbis.c | |
parent | 86f4222cfe1e30c2de6c7362e31a8ab5b68f7321 (diff) | |
parent | 7dedf440d149b7f7394c7810d9ca6e42ee89b7bd (diff) |
Merge branch 'master' into i18n
Conflicts:
playlist.c
Diffstat (limited to 'plugins/vorbis/vorbis.c')
-rw-r--r-- | plugins/vorbis/vorbis.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 37ca2263..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 } @@ -593,13 +593,15 @@ cvorbis_write_metadata (DB_playItem_t *it) { err = 0; error: + if (fp) { + fclose (fp); + } if (out) { fclose (out); } if (state) { vcedit_clear (state); } - while (preserved_fields) { struct field *next = preserved_fields->next; free (preserved_fields); |