Browse Source

wtv: fix memleaks during normal operation

tags/n0.10
Janne Grunau 13 years ago
parent
commit
68e252f548
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/wtv.c

+ 3
- 0
libavformat/wtv.c View File

@@ -302,6 +302,8 @@ static void wtvfile_close(AVIOContext *pb)
{ {
WtvFile *wf = pb->opaque; WtvFile *wf = pb->opaque;
av_free(wf->sectors); av_free(wf->sectors);
av_free(wf);
av_free(pb->buffer);
av_free(pb); av_free(pb);
} }


@@ -1093,6 +1095,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
static int read_close(AVFormatContext *s) static int read_close(AVFormatContext *s)
{ {
WtvContext *wtv = s->priv_data; WtvContext *wtv = s->priv_data;
av_free(wtv->index_entries);
wtvfile_close(wtv->pb); wtvfile_close(wtv->pb);
return 0; return 0;
} }


Loading…
Cancel
Save