v4l2sink: Unref pool after usage
authorOgnyan Tonchev <ognyan@axis.com>
Wed, 10 Sep 2014 07:50:45 +0000 (09:50 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Wed, 10 Sep 2014 12:26:18 +0000 (08:26 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=736384

sys/v4l2/gstv4l2sink.c

index c25a7195017039272d031e8f23d0c8e309df6a69..3327d8a9fd4c7098ea8b069ab0de4f6ce2d92299 100644 (file)
@@ -554,6 +554,7 @@ gst_v4l2sink_propose_allocation (GstBaseSink * bsink, GstQuery * query)
       max = min;
 
     gst_query_set_nth_allocation_pool (query, 0, pool, size, min, max);
+    gst_object_unref (pool);
   }
 
   return TRUE;