Commit ac97fb2b authored by Julien Cristau's avatar Julien Cristau Committed by Adam Jackson
Browse files

dri3: return an error if AddResource fails


Reviewed-by: default avatarRémi Cardona <remi@gentoo.org>
Signed-off-by: Julien Cristau's avatarJulien Cristau <jcristau@debian.org>
parent 119d5c0e
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment