[gtk+: 90/97] gl renderer: Don't leak gl resources
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+: 90/97] gl renderer: Don't leak gl resources
- Date: Thu, 21 Dec 2017 18:15:47 +0000 (UTC)
commit 28499032da585c914a9089249f8374e48b9ae159
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 16 02:37:03 2017 +0100
gl renderer: Don't leak gl resources
gsk/gl/gskglrenderer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 49d8684..95cc513 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1921,6 +1921,8 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
/* Done drawing, destroy the buffer again.
* TODO: Can we reuse the memory, though? */
g_free (vertex_data);
+ glDeleteVertexArrays (1, &vao_id);
+ glDeleteBuffers (1, &buffer_id);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]