From 18a643d36f1181bf614d8e83060d5758b74493ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wang=20Xin-yu=20=28=E7=8E=8B=E6=98=95=E5=AE=87=29?= Date: Thu, 21 Jan 2016 16:10:48 +0800 Subject: [PATCH] glvideomixer: fix checker vbo leak https://bugzilla.gnome.org/show_bug.cgi?id=760925 --- ext/gl/gstglvideomixer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index da29525..273d067 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -1081,6 +1081,11 @@ _reset_gl (GstGLContext * context, GstGLVideoMixer * video_mixer) video_mixer->vbo_indices = 0; } + if (video_mixer->checker_vbo) { + gl->DeleteBuffers (1, &video_mixer->checker_vbo); + video_mixer->checker_vbo = 0; + } + gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (video_mixer), _reset_pad_gl, NULL); } -- 2.7.4