From 13fc711ecaaf0cd7bf8cf3b2140c67f7ccd3859c Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 6 Mar 2019 00:59:35 +1100 Subject: [PATCH] gloverlaycompositor: Also free the texcoord GL buffer Fix a typo that was attempting to free the position GL buffer twice (without any consequences as there was a if (buffer) check) Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/561 --- gst-libs/gst/gl/gstgloverlaycompositor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstgloverlaycompositor.c b/gst-libs/gst/gl/gstgloverlaycompositor.c index b025e00c7d..308926cfda 100644 --- a/gst-libs/gst/gl/gstgloverlaycompositor.c +++ b/gst-libs/gst/gl/gstgloverlaycompositor.c @@ -175,8 +175,8 @@ gst_gl_composition_overlay_free_vertex_buffer (GstGLContext * context, } if (overlay->texcoord_buffer) { - gl->DeleteBuffers (1, &overlay->position_buffer); - overlay->position_buffer = 0; + gl->DeleteBuffers (1, &overlay->texcoord_buffer); + overlay->texcoord_buffer = 0; } if (overlay->index_buffer) {