From 1c4e5c2aeb9a67cea73b9d5349e5d4a0f4137f50 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 26 Sep 2014 01:45:22 +1000 Subject: [PATCH] gltestsrc: free the shader on stop --- ext/gl/gstgltestsrc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/gl/gstgltestsrc.c b/ext/gl/gstgltestsrc.c index c154477c3d..0c7f2c1b9f 100644 --- a/ext/gl/gstgltestsrc.c +++ b/ext/gl/gstgltestsrc.c @@ -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); }