From b5261874f0931f874579feb79b61bb0c8e5ab778 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 15 Dec 2005 17:06:10 +0000 Subject: [PATCH] gst/realmedia/rmdemux.c: Remove memleak from unused GstRMDemuxStream Original commit message from CVS: * gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream): Remove memleak from unused GstRMDemuxStream --- ChangeLog | 5 +++++ gst/realmedia/rmdemux.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6f002f9baf..3d47f20bc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-15 Edward Hervey + + * gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream): + Remove memleak from unused GstRMDemuxStream + 2005-12-12 Michael Smith * ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list), diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index ad55ea6f6c..fc54accc5e 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -1330,8 +1330,9 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream) } rmdemux->n_audio_streams++; } else { - GST_WARNING_OBJECT (rmdemux, "not adding stream of type %d", + GST_WARNING_OBJECT (rmdemux, "not adding stream of type %d, freeing it", stream->subtype); + g_free (stream); goto beach; }