mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
Remove/Rename SDL_FreeWAV() to SDL_free()
This commit is contained in:
parent
29ba5f5d64
commit
3fb0c8b54a
13 changed files with 28 additions and 44 deletions
|
@ -112,7 +112,7 @@ int main(int argc, char *argv[])
|
|||
/* Initialize fillerup() variables */
|
||||
if (SDL_OpenAudio(&wave.spec, NULL) < 0) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError());
|
||||
SDL_FreeWAV(wave.sound);
|
||||
SDL_free(wave.sound);
|
||||
quit(2);
|
||||
}
|
||||
|
||||
|
@ -139,7 +139,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Clean up on signal */
|
||||
SDL_CloseAudio();
|
||||
SDL_FreeWAV(wave.sound);
|
||||
SDL_free(wave.sound);
|
||||
SDL_free(filename);
|
||||
SDL_Quit();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue