summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@parrot.com>2014-11-07 16:41:52 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2014-12-01 10:08:40 -0500
commit74eb9037271cd6de848213f25168b6fe91b46ef5 (patch)
treead56c4d5d01af940f6b40c8d61576d4f83c093e3
parentcfa5a9d938e586c97be0bce7be779cc95ed4f9e0 (diff)
v4l2bufferpool: unref pool when v4l2_allocator_new() fails
https://bugzilla.gnome.org/show_bug.cgi?id=739791
-rw-r--r--sys/v4l2/gstv4l2bufferpool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
index 473d91e07..c8b0588e5 100644
--- a/sys/v4l2/gstv4l2bufferpool.c
+++ b/sys/v4l2/gstv4l2bufferpool.c
@@ -1489,6 +1489,7 @@ dup_failed:
allocator_failed:
{
GST_ERROR_OBJECT (pool, "Failed to create V4L2 allocator");
+ gst_object_unref (pool);
return NULL;
}
}