From a091698bf50f49c10e5537282b98fb33d22e07dc Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 4 Oct 2010 22:49:49 +0200 Subject: fixed few random memleaks --- plugins/vorbis/vorbis.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/vorbis') 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; } -- cgit v1.2.3