gltestsrc: free the shader on stop

This commit is contained in:
Matthew Waters 2014-09-26 01:45:22 +10:00 committed by Tim-Philipp Müller
parent f5006bdf09
commit 1c4e5c2aeb

View file

@ -674,6 +674,11 @@ gst_gl_test_src_stop (GstBaseSrc * basesrc)
gst_caps_replace (&src->out_caps, NULL);
if (src->context) {
if (src->shader) {
gst_object_unref (src->shader);
src->shader = NULL;
}
if (src->out_tex_id) {
gst_gl_context_del_texture (src->context, &src->out_tex_id);
}