gst/realmedia/rmdemux.c: Don't leak stream index (#385292).

Original commit message from CVS:
Patch by: Roland Kay  <roland.kay at ox compsoc net>
* gst/realmedia/rmdemux.c: (gst_rmdemux_reset):
Don't leak stream index (#385292).
This commit is contained in:
Roland Kay 2006-12-14 11:25:00 +00:00 committed by Tim-Philipp Müller
parent bcc7663ebe
commit d54f267bc4
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-12-14 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Roland Kay <roland.kay at ox compsoc net>
* gst/realmedia/rmdemux.c: (gst_rmdemux_reset):
Don't leak stream index (#385292).
2006-12-14 Tim-Philipp Müller <tim at centricular dot net>
Based on patch by: Roland Kay <roland.kay at ox compsoc net>

View file

@ -660,6 +660,7 @@ gst_rmdemux_reset (GstRMDemux * rmdemux)
gst_element_remove_pad (GST_ELEMENT (rmdemux), rmdemux->streams[n]->pad);
if (rmdemux->streams[n]->subpackets)
g_ptr_array_free (rmdemux->streams[n]->subpackets, TRUE);
g_free (rmdemux->streams[n]->index);
g_free (rmdemux->streams[n]);
rmdemux->streams[n] = NULL;
}