From 994af9442bf2ba8c6e6fc098befe67f8e96d2097 Mon Sep 17 00:00:00 2001 From: Monty Date: Wed, 13 Oct 1999 03:51:39 +0000 Subject: [PATCH] Remove -malign-double from lib build. Fix a memory leak in the examples and xmms plugin (vorbis_info_clear has to come after vorbis_dsp_clear()) Monty svn path=/trunk/vorbis/; revision=147 --- lib/decoder_example.c | 2 +- lib/encoder_example.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/decoder_example.c b/lib/decoder_example.c index 62acc70..5fdf79a 100644 --- a/lib/decoder_example.c +++ b/lib/decoder_example.c @@ -241,9 +241,9 @@ int main(){ /* ogg_page and ogg_packet structs always point to storage in libvorbis. They're never freed or manipulated directly */ - vorbis_info_clear(&vi); vorbis_dsp_clear(&vd); vorbis_block_clear(&vb); + vorbis_info_clear(&vi); /* must be called last */ fprintf(stderr,"Done.\n"); return(0); diff --git a/lib/encoder_example.c b/lib/encoder_example.c index e8b00e0..66e9e86 100644 --- a/lib/encoder_example.c +++ b/lib/encoder_example.c @@ -140,12 +140,12 @@ int main(){ } } - /* clean up and exit */ + /* clean up and exit. vorbis_info_clear() must be called last */ ogg_stream_clear(&os); - vorbis_info_clear(&vi); vorbis_dsp_clear(&vd); vorbis_block_clear(&vb); + vorbis_info_clear(&vi); /* ogg_page and ogg_packet structs always point to storage in libvorbis. They're never freed or manipulated directly */ -- 2.7.4