mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 10:40:29 +01:00
dri3: return an error if AddResource fails
Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
119d5c0e2f
commit
ac97fb2b80
1 changed files with 2 additions and 2 deletions
|
|
@ -178,8 +178,8 @@ proc_dri3_pixmap_from_buffer(ClientPtr client)
|
|||
(*drawable->pScreen->DestroyPixmap) (pixmap);
|
||||
return rc;
|
||||
}
|
||||
if (AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
|
||||
return Success;
|
||||
if (!AddResource(stuff->pixmap, RT_PIXMAP, (void *) pixmap))
|
||||
return BadAlloc;
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue