From: Tim-Philipp Müller Date: Sat, 27 Apr 2013 11:28:42 +0000 (+0100) Subject: kate: fix buffer leak in katetag X-Git-Tag: 1.19.3~507^2~13760 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9056e775a92d21ba481ae142d91fa511c3f97919;p=platform%2Fupstream%2Fgstreamer.git kate: fix buffer leak in katetag Makes unit test valgrind clean. https://bugzilla.gnome.org/show_bug.cgi?id=697071 --- diff --git a/ext/kate/gstkatetag.c b/ext/kate/gstkatetag.c index 4aa3a4fa3f..b7d88ed66e 100644 --- a/ext/kate/gstkatetag.c +++ b/ext/kate/gstkatetag.c @@ -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)) {