summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/gstvideoaggregator.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2015-04-16 14:17:04 +0200
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-04-17 14:45:05 +0100
commit89e2a5fe755b6dcf2f013ba87ac43c447da9599a (patch)
tree7a382e275e74bdedeaad20765e8ea6098e82b740 /gst-libs/gst/video/gstvideoaggregator.c
parentfae93514e4d71ec16a14c36646d9f209cea6da1f (diff)
downloadgstreamer-plugins-bad-89e2a5fe755b6dcf2f013ba87ac43c447da9599a.tar.gz
videoaggregator: fix caps leak when early returning
https://bugzilla.gnome.org/show_bug.cgi?id=747993 Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'gst-libs/gst/video/gstvideoaggregator.c')
-rw-r--r--gst-libs/gst/video/gstvideoaggregator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c
index 0f845f941..965aafcd4 100644
--- a/gst-libs/gst/video/gstvideoaggregator.c
+++ b/gst-libs/gst/video/gstvideoaggregator.c
@@ -734,10 +734,11 @@ gst_videoaggregator_update_src_caps (GstVideoAggregator * vagg)
gst_caps_unref (caps);
gst_caps_unref (peercaps);
- caps = tmp;
+ caps = tmp; /* pass ownership */
if (gst_caps_is_empty (caps)) {
GST_DEBUG_OBJECT (vagg, "empty caps");
ret = FALSE;
+ gst_caps_unref (caps);
goto done;
}