basevideoencoder: fix element leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 25 Aug 2011 18:56:58 +0000 (19:56 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Aug 2011 08:27:16 +0000 (10:27 +0200)
and this concludes an hour of yelling at the bloody test failing,
only to track down the problem not being in the test.

https://bugzilla.gnome.org/show_bug.cgi?id=657368

omx/gstbasevideoencoder.c

index e1c2c77..5baa4b0 100644 (file)
@@ -432,6 +432,7 @@ done:
 
   GST_LOG_OBJECT (base_video_encoder, "Returning caps %" GST_PTR_FORMAT, fcaps);
 
+  g_object_unref (base_video_encoder);
   return fcaps;
 }