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:25:46 +0000 (10:25 +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

gst-libs/gst/video/gstbasevideoencoder.c

index e1c2c77a623cf98df2931cc4d9827a58049d059c..5baa4b0d22abf692279f67476661aa20243e0943 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;
 }