Skip to content

Commit

Permalink
use QOI_FREE
Browse files Browse the repository at this point in the history
  • Loading branch information
baidwwy authored and sezero committed Oct 31, 2023
1 parent 4953d01 commit 7744158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMG_qoi.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ SDL_Surface *IMG_LoadQOI_RW(SDL_RWops *src)
(image_info.width * 4),
SDL_PIXELFORMAT_RGBA32);
if ( !surface ) {
SDL_free(pixel_data);
QOI_FREE(pixel_data);
IMG_SetError("Couldn't create SDL_Surface");
return NULL;
}
Expand Down

0 comments on commit 7744158

Please sign in to comment.