From fbbbac84a60ff45ced440111fa308aaa1f0bd0c1 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Fri, 10 Sep 2010 21:57:55 +0000 Subject: [PATCH] cleanup git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@832 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/ps3_xvag.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meta/ps3_xvag.c b/src/meta/ps3_xvag.c index fb31d9a4..a9fa4fc8 100644 --- a/src/meta/ps3_xvag.c +++ b/src/meta/ps3_xvag.c @@ -214,6 +214,14 @@ VGMSTREAM * init_vgmstream_ps3_xvag(STREAMFILE *streamFile) { /* clean up anything we may have opened */ fail: + if (mpeg_data) { + mpg123_delete(mpeg_data->m); + free(mpeg_data); + + if (vgmstream) { + vgmstream->codec_data = NULL; + } + } if (vgmstream) close_vgmstream(vgmstream); return NULL; }