Skip to content
Snippets Groups Projects
Commit dc1b2d41 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

gsk: Don't leak gl textures

We need to fix all the textures we own. This broke in 65c8320a.

Fixes: #7013
parent 72718b71
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ gsk_gl_image_finalize (GObject *object)
if (self->texture_id && self->framebuffer_id)
glDeleteFramebuffers (1, &self->framebuffer_id);
if (gsk_gpu_image_get_flags (GSK_GPU_IMAGE (self)) & GSK_GPU_IMAGE_TOGGLE_REF)
if (self->owns_texture)
glDeleteTextures (1, &self->texture_id);
G_OBJECT_CLASS (gsk_gl_image_parent_class)->finalize (object);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment