mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Replace malloc for calloc in the ps2_gfx
This commit is contained in:
parent
90ba2df972
commit
40b028ebce
@ -66,10 +66,7 @@ static GSGLOBAL *init_GSGlobal(void) {
|
||||
}
|
||||
|
||||
static GSTEXTURE * prepare_new_texture(void) {
|
||||
GSTEXTURE *texture = malloc(sizeof *texture);
|
||||
texture->Width = 0;
|
||||
texture->Height = 0;
|
||||
texture->Mem = NULL;
|
||||
GSTEXTURE *texture = calloc(1, sizeof(*texture));
|
||||
return texture;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user