graphics: fix potential bad free of sprite->masks
This commit is contained in:
parent
d96bc4f2cb
commit
f8791b157e
@ -403,6 +403,7 @@ void load_sprite(sprite_t * sprite, char * filename) {
|
||||
sprite->width = width;
|
||||
sprite->height = height;
|
||||
sprite->bitmap = malloc(sizeof(uint32_t) * width * height);
|
||||
sprite->masks = NULL;
|
||||
|
||||
for (y = 0; y < height; ++y) {
|
||||
for (x = 0; x < width; ++x) {
|
||||
|
Loading…
Reference in New Issue
Block a user