diff --git a/ChangeLog b/ChangeLog index ab045fe8e9..f06a5ed9cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-11 Jan Schmidt + + * gst/id3demux/gstid3demux.c: (id3demux_get_upstream_size), + (gst_id3demux_do_typefind): + Fix a couple of mem leaks. (Patch by Jonathan Matthew + ) + 2006-02-10 Wim Taymans * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_setcaps): diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c index 8b37ff86be..14f29feb0d 100644 --- a/gst/id3demux/gstid3demux.c +++ b/gst/id3demux/gstid3demux.c @@ -578,6 +578,7 @@ id3demux_get_upstream_size (GstID3Demux * id3demux) goto out; gst_query_parse_duration (query, &format, &result); + gst_query_unref (query); if (format != GST_FORMAT_BYTES || result == -1) goto out; @@ -1090,6 +1091,9 @@ gst_id3demux_do_typefind (GstID3Demux * id3demux, GstBuffer * buffer) return find.caps; } + if (find.caps) + gst_caps_unref (find.caps); + return NULL; }