gst/avi/gstavidemux.c: Fix memleak. patch from Sebastien Cote (bug #139958)

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_reset): Fix memleak.
patch from Sebastien Cote (bug #139958)
This commit is contained in:
Sebastien Cote 2004-04-13 21:34:29 +00:00 committed by David Schleef
parent 23bcab0c9a
commit 23222fefd2
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-04-13 David Schleef <ds@schleef.org>
* gst/avi/gstavidemux.c: (gst_avi_demux_reset): Fix memleak.
patch from Sebastien Cote (bug #139958)
2004-04-13 Thomas Vander Stichele <thomas at apestaart dot org>
* examples/gstplay/Makefile.am:

View file

@ -187,6 +187,7 @@ gst_avi_demux_reset (GstAviDemux * avi)
for (i = 0; i < avi->num_streams; i++) {
g_free (avi->stream[i].strh);
gst_element_remove_pad (GST_ELEMENT (avi), avi->stream[i].pad);
gst_caps_free (avi->stream[i].caps);
}
memset (&avi->stream, 0, sizeof (avi->stream));