gl renderer: Don't leak gl resources

This commit is contained in:
Timm Bäder 2017-12-16 02:37:03 +01:00
parent 5eb4f65c32
commit 28499032da

View File

@ -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