SDL_image: use QOI_FREE (07aca)

From 07aca54f8cbb80f2a3a4e1913c68b1f0fd64a333 Mon Sep 17 00:00:00 2001
From: baidwwy <[EMAIL REDACTED]>
Date: Tue, 31 Oct 2023 12:50:42 +0800
Subject: [PATCH] use QOI_FREE

---
 src/IMG_qoi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/IMG_qoi.c b/src/IMG_qoi.c
index f0cda5a9..be54bbac 100644
--- a/src/IMG_qoi.c
+++ b/src/IMG_qoi.c
@@ -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;
     }