From e9d70dfb6df7d19d9c1912a4f7b722e22fdfe884 Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 25 Mar 2010 05:29:15 +0000 Subject: [PATCH] Fix for Mozilla BZ#550184 and Xiph Trac #1656 svn path=/trunk/vorbis/; revision=17029 --- lib/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/info.c b/lib/info.c index 4720b93..1f0b7e9 100644 --- a/lib/info.c +++ b/lib/info.c @@ -628,12 +628,12 @@ int vorbis_analysis_headerout(vorbis_dsp_state *v, oggpack_writeclear(&opb); return(0); err_out: - oggpack_writeclear(&opb); memset(op,0,sizeof(*op)); memset(op_comm,0,sizeof(*op_comm)); memset(op_code,0,sizeof(*op_code)); if(b){ + oggpack_writeclear(&opb); if(b->header)_ogg_free(b->header); if(b->header1)_ogg_free(b->header1); if(b->header2)_ogg_free(b->header2); -- 2.7.4