baseparse: fix minor memory leak
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 7 Aug 2009 11:06:28 +0000 (13:06 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:06:58 +0000 (18:06 +0100)
gst/aacparse/gstbaseparse.c

index b59319a..ffb17f3 100644 (file)
@@ -950,6 +950,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
           GST_DEBUG_OBJECT (parse,
               "found valid frame but not enough data available (only %d bytes)",
               gst_adapter_available (parse->adapter));
+          gst_buffer_unref (tmpbuf);
           goto done;
         }
         break;