Skip to content

Commit

Permalink
REVIEWED: LoadImageAnimFromMemory() #3704
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Jan 5, 2024
1 parent e428ec9 commit b4cb0f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand All @@ -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;
}

Expand Down

0 comments on commit b4cb0f3

Please sign in to comment.