videotestsrc: Fix a leak when computing alpha caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1131>
This commit is contained in:
Nirbheek Chauhan 2021-04-30 20:42:55 +05:30
parent 9b6a425aa4
commit b14347041a

View file

@ -472,6 +472,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);