mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
r300g: plug a memory leak in winsys
This commit is contained in:
parent
862ebb411b
commit
032b162ce8
1 changed files with 1 additions and 0 deletions
|
|
@ -463,6 +463,7 @@ static struct r300_winsys_bo *radeon_winsys_bo_from_handle(struct r300_winsys_sc
|
|||
/* Open the BO. */
|
||||
open_arg.name = whandle->handle;
|
||||
if (drmIoctl(ws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) {
|
||||
FREE(bo);
|
||||
goto fail;
|
||||
}
|
||||
bo->handle = open_arg.handle;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue