goom*: fix leaked caps event
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 17 Feb 2012 16:57:03 +0000 (17:57 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 17 Feb 2012 16:57:03 +0000 (17:57 +0100)
gst/goom/gstgoom.c
gst/goom2k1/gstgoom.c

index 5c8bbcd..f467739 100644 (file)
@@ -383,6 +383,7 @@ gst_goom_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
 
       gst_event_parse_caps (event, &caps);
       res = gst_goom_sink_setcaps (goom, caps);
+      gst_event_unref (event);
       break;
     }
     case GST_EVENT_FLUSH_START:
index f13fdf4..4421b17 100644 (file)
@@ -379,6 +379,7 @@ gst_goom_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
 
       gst_event_parse_caps (event, &caps);
       res = gst_goom_sink_setcaps (goom, caps);
+      gst_event_unref (event);
       break;
     }
     case GST_EVENT_FLUSH_START: