Use SDL_free
This commit is contained in:
parent
2004aaf3bb
commit
aef7105408
2 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ SDL_GetPrefPath(const char *org, const char *app)
|
|||
dir = (char *) SDL_malloc(len);
|
||||
if (!dir) {
|
||||
SDL_OutOfMemory();
|
||||
free(canon);
|
||||
SDL_free(canon);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue