goom: fix buffer leak
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 16 Feb 2012 22:33:15 +0000 (23:33 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 16 Feb 2012 22:46:45 +0000 (23:46 +0100)
gst/goom/gstgoom.c

index 7da041c04e332ddbb64306cfbb4e9e838640094e..5c8bbcd722066d620e194f61ad44ac569ec9d1a6 100644 (file)
@@ -494,6 +494,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
 
   goom = GST_GOOM (parent);
   if (goom->bps == 0) {
+    gst_buffer_unref (buffer);
     ret = GST_FLOW_NOT_NEGOTIATED;
     goto beach;
   }