diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2015-04-16 14:17:04 +0200 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2015-04-17 14:45:05 +0100 |
commit | 89e2a5fe755b6dcf2f013ba87ac43c447da9599a (patch) | |
tree | 7a382e275e74bdedeaad20765e8ea6098e82b740 /gst-libs/gst | |
parent | fae93514e4d71ec16a14c36646d9f209cea6da1f (diff) | |
download | gstreamer-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')
-rw-r--r-- | gst-libs/gst/video/gstvideoaggregator.c | 3 |
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; } |