Fix major leak in load_sprite_png

This commit is contained in:
Kevin Lange 2016-12-24 20:44:48 +09:00
parent d7b234036a
commit fae3c8171c

View File

@ -586,6 +586,8 @@ int load_sprite_png(sprite_t * sprite, char * file) {
}
free(row_pointers);
png_destroy_read_struct(&png_ptr,&info_ptr,NULL);
return 0;
}