From daedbc121e188d900fdcb23b16944c559b25e811 Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Sat, 21 Dec 2002 20:19:50 +0000 Subject: Fix memory leak (100100 bytes per stream) CVS patchset: 3621 CVS date: 2002/12/21 20:19:50 --- src/demuxers/demux_mpeg.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index 32ed6bf6f..9a155998e 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpeg.c,v 1.100 2002/12/21 12:56:45 miguelfreitas Exp $ + * $Id: demux_mpeg.c,v 1.101 2002/12/21 20:19:50 esnel Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -1034,9 +1034,11 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str /* disregard the RIFF file if it is certainly a better known * format like AVI or WAVE */ if ((fourcc_tag == WAVE_TAG) || - (fourcc_tag == AVI_TAG)) + (fourcc_tag == AVI_TAG)) { + free (this); return DEMUX_CANNOT_HANDLE; - + } + /* Iterate through first n kilobytes of RIFF file searching for * MPEG video marker. No, it's not a very efficient approach, but * if execution has reached this special case, this is currently -- cgit v1.2.3