summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2021-04-30 20:42:55 +0530
committerTim-Philipp Müller <tim@centricular.com>2021-04-30 17:41:44 +0100
commit90ab05dee344522a373dd311b801c66f9eecaf07 (patch)
tree7ffa779599523c1762ecc34617a0b110f7e8bd7c
parent90903917a8185e0f9add7af8153ae2fc9875fdcb (diff)
downloadgstreamer-plugins-base-90ab05dee344522a373dd311b801c66f9eecaf07.tar.gz
videotestsrc: Fix a leak when computing alpha caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1132>
-rw-r--r--gst/videotestsrc/gstvideotestsrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c
index d36850acc..a7b1a6464 100644
--- a/gst/videotestsrc/gstvideotestsrc.c
+++ b/gst/videotestsrc/gstvideotestsrc.c
@@ -470,6 +470,7 @@ gst_video_test_src_src_fixate (GstBaseSrc * bsrc, GstCaps * caps)
} else {
gst_caps_replace (&caps, alpha_only_caps);
}
+ gst_caps_unref (alpha_only_caps);
}
caps = gst_caps_make_writable (caps);