From 7a00688122528bcb7e534029d09c087be3982529 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 May 2016 10:40:58 +0300 Subject: [PATCH] gltestsrc: fix src_impl leak https://bugzilla.gnome.org/show_bug.cgi?id=766661 --- ext/gl/gstgltestsrc.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }