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:
parent
9b6a425aa4
commit
b14347041a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user