From b4cb0f3e7db194338df175b063e03277bb5f28d8 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 5 Jan 2024 22:33:56 +0100 Subject: [PATCH] REVIEWED: `LoadImageAnimFromMemory()` #3704 --- src/rtextures.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index a2bba1cf..267173c0 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -470,7 +470,6 @@ Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileDat image.mipmaps = 1; image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; - RL_FREE(fileData); RL_FREE(delays); // NOTE: Frames delays are discarded } } @@ -479,7 +478,7 @@ Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileDat #endif else { - image = LoadImageFromMemory(fileType,fileData,dataSize); + image = LoadImageFromMemory(fileType, fileData, dataSize); frameCount = 1; }