summaryrefslogtreecommitdiffstats
path: root/gst/id3demux
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2006-02-11 13:35:13 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-02-11 13:35:13 +0000
commita3e95ebfc9586534fa26d7ea59f34987f6e78ad1 (patch)
tree5eb37ebb314cac858683f8d4922a29ddf2ed2630 /gst/id3demux
parent2bbf2b424d5edc180528bf9ab99b5a07ec9824e9 (diff)
gst/id3demux/gstid3demux.c:
Original commit message from CVS: * gst/id3demux/gstid3demux.c: (id3demux_get_upstream_size), (gst_id3demux_do_typefind): Fix a couple of mem leaks. (Patch by Jonathan Matthew <jonathan at kaolin dot wh9 dot net>)
Diffstat (limited to 'gst/id3demux')
-rw-r--r--gst/id3demux/gstid3demux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c
index 8b37ff86..14f29feb 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;
}