diff --git a/ext/gl/gstgltestsrc.c b/ext/gl/gstgltestsrc.c index 45788ddc65..69c8b33b63 100644 --- a/ext/gl/gstgltestsrc.c +++ b/ext/gl/gstgltestsrc.c @@ -568,6 +568,11 @@ gst_gl_test_src_stop (GstBaseSrc * basesrc) src->context = NULL; } + if (src->src_impl) { + src->src_funcs->free (src->src_impl); + src->src_impl = NULL; + } + return TRUE; }