mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
util: add alloc check
This commit is contained in:
parent
51729b5119
commit
867478b6f6
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ struct u_upload_mgr *u_upload_create( struct pipe_context *pipe,
|
|||
unsigned usage )
|
||||
{
|
||||
struct u_upload_mgr *upload = CALLOC_STRUCT( u_upload_mgr );
|
||||
if (!upload)
|
||||
return NULL;
|
||||
|
||||
upload->pipe = pipe;
|
||||
upload->default_size = default_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue