diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-10-04 22:49:49 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-10-04 22:49:49 +0200 |
commit | a091698bf50f49c10e5537282b98fb33d22e07dc (patch) | |
tree | 22c697b076e259839dcb4193a072da6c7e6128e8 /plugins/vorbis | |
parent | 43beeb7291d4c3290bc87f6aa55941dbfcd2d2bd (diff) |
fixed few random memleaks
Diffstat (limited to 'plugins/vorbis')
-rw-r--r-- | plugins/vorbis/vorbis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index db92e223..38c97532 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -418,6 +418,7 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) { deadbeef->pl_add_meta (it, "title", NULL); after = deadbeef->pl_insert_item (after, it); deadbeef->pl_item_unref (it); + deadbeef->fclose (fp); return after; } ov_callbacks ovcb = { @@ -431,6 +432,7 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) { int err = ov_open_callbacks (fp, &vorbis_file, NULL, 0, ovcb); if (err != 0) { trace ("ov_open_callbacks returned %d\n", err); + ov_clear (&vorbis_file); return NULL; } |