changeset 15297:536e50589652

revert one line of version 1.182 patch (caused use of already-freed memory and multiple double-free errors). i am fairly confident that all the relevant memory is now freed once and exactly once, but it's better than corrupting the heap in any case. 100l to reimar :)
author rfelker
date Fri, 29 Apr 2005 21:57:05 +0000
parents f2c1c1034d66
children 71a915145b2c
files libmpdemux/demuxer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Fri Apr 29 19:36:42 2005 +0000
+++ b/libmpdemux/demuxer.c	Fri Apr 29 21:57:05 2005 +0000
@@ -224,7 +224,7 @@
     case DEMUXER_TYPE_SMJPEG:
       demux_close_smjpeg(demuxer); break;
     case DEMUXER_TYPE_DEMUXERS:
-      demux_close_demuxers(demuxer); break;
+      demux_close_demuxers(demuxer); return;
     case DEMUXER_TYPE_AVI: 
     case DEMUXER_TYPE_AVI_NI:
     case DEMUXER_TYPE_AVI_NINI: