kate: fix buffer leak in katetag

Makes unit test valgrind clean.

https://bugzilla.gnome.org/show_bug.cgi?id=697071
This commit is contained in:
Tim-Philipp Müller 2013-04-27 12:28:42 +01:00
parent 8c7ed7ccea
commit 9056e775a9

View file

@ -281,6 +281,7 @@ gst_kate_tag_parse_packet (GstKateParse * parse, GstBuffer * buffer)
gst_buffer_unmap (buffer, &info);
new_buffer = gst_buffer_copy (buffer);
gst_buffer_unref (buffer);
buffer = new_buffer;
if (!gst_buffer_map (buffer, &info, GST_MAP_READWRITE)) {