Some misc tweaks

This commit is contained in:
Ray
2021-03-02 02:03:52 +01:00
parent 8df56c5843
commit 01b3c97c42
3 changed files with 43 additions and 49 deletions

View File

@@ -3879,7 +3879,7 @@ static bool InitGraphicsDevice(int width, int height)
TRACELOG(LOG_TRACE, "DISPLAY: EGL configs available: %d", numConfigs);
EGLConfig *configs = calloc(numConfigs, sizeof(*configs));
EGLConfig *configs = RL_CALLOC(numConfigs, sizeof(*configs));
if (!configs)
{
TRACELOG(LOG_WARNING, "DISPLAY: Failed to get memory for EGL configs");
@@ -3916,7 +3916,7 @@ static bool InitGraphicsDevice(int width, int height)
}
}
free(configs);
RL_FREE(configs);
if (!found)
{