mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
Check for NULL pointer
This commit is contained in:
parent
906e189bd3
commit
5cf69fe511
1 changed files with 2 additions and 0 deletions
|
|
@ -602,6 +602,8 @@ dri2CreateNewDrawable(__DRIscreen *screen, const __DRIconfig *config,
|
|||
__DRIdrawable *pdraw;
|
||||
|
||||
pdraw = driCreateNewDrawable(screen, config, 0, 0, NULL, data);
|
||||
if (!pdraw)
|
||||
return NULL;
|
||||
|
||||
pdraw->dri2.drawable_id = drawable_id;
|
||||
pdraw->dri2.tail = head;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue