gpu: Plug fd leak in fallback path

If we can't construct a dmabuf texture, we need to clear the dmabuf fd.
This commit is contained in:
Benjamin Otte
2024-08-26 04:54:54 +02:00
parent ea9b47f1b6
commit 0defdc4af5

View File

@@ -325,6 +325,8 @@ gsk_gpu_download_op_gl_command (GskGpuOp *op,
if (self->texture)
return op->next;
gdk_dmabuf_close_fds (&texture->dmabuf);
}
g_free (texture);