Fix major leak in load_sprite_png
This commit is contained in:
parent
d7b234036a
commit
fae3c8171c
@ -586,6 +586,8 @@ int load_sprite_png(sprite_t * sprite, char * file) {
|
|||||||
}
|
}
|
||||||
free(row_pointers);
|
free(row_pointers);
|
||||||
|
|
||||||
|
png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user