mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-19 00:41:53 +00:00
init_video_pixel_converter - return false if calloc failed
This commit is contained in:
parent
341579f7b6
commit
e76f8b9a71
@ -55,6 +55,9 @@ bool init_video_pixel_converter(unsigned size)
|
||||
|
||||
driver->scaler_out = calloc(sizeof(uint16_t), size * size);
|
||||
|
||||
if (!driver->scaler_out)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user