changeset 2434:12c81b5d31f9

Fix the double-free!!!!oneoneone+1.
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Mar 2008 14:49:02 -0600
parents fd2ef06da1c5
children 3bbc5053e9b4
files src/wma/libffwma/futils.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/wma/libffwma/futils.c	Wed Mar 05 20:03:37 2008 +0900
+++ b/src/wma/libffwma/futils.c	Fri Mar 07 14:49:02 2008 -0600
@@ -1539,6 +1539,7 @@
         }
         free(st->index_entries);
         free(st);
+	s->streams[i] = NULL;
     }
     flush_packet_queue(s);
     must_open_file = 1;
@@ -1567,8 +1568,6 @@
     if (s->cur_st && s->cur_st->parser)
         av_free_packet(&s->cur_pkt); 
 
-    if (s->iformat->read_close)
-        s->iformat->read_close(s);
     for(i=0;i<s->nb_streams;i++) {
         /* free all data in a stream component */
         st = s->streams[i];