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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user