mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
Fix some issues caught by check_stdlib_usage.py
This commit is contained in:
@@ -70,7 +70,7 @@ static void recursive_mkdir(const char *dir)
|
||||
}
|
||||
}
|
||||
|
||||
free(base);
|
||||
SDL_free(base);
|
||||
mkdir(tmp, S_IRWXU);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
|
||||
} else {
|
||||
SDL_snprintf(retval, len, "%s%s/", base, app);
|
||||
}
|
||||
free(base);
|
||||
SDL_free(base);
|
||||
|
||||
recursive_mkdir(retval);
|
||||
|
||||
|
@@ -63,7 +63,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
|
||||
} else {
|
||||
SDL_snprintf(retval, len, "%s%s/", base, app);
|
||||
}
|
||||
free(base);
|
||||
SDL_free(base);
|
||||
|
||||
mkdir(retval, 0755);
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user