More renaming SDL_FreeWAV() to SDL_Free()
This commit is contained in:
parent
fc478c1bc0
commit
3d063d7295
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ quit(int rc)
|
||||||
{
|
{
|
||||||
SDL_free(sprites);
|
SDL_free(sprites);
|
||||||
close_audio();
|
close_audio();
|
||||||
SDL_FreeWAV(wave.sound);
|
SDL_free(wave.sound);
|
||||||
SDLTest_CommonQuit(state);
|
SDLTest_CommonQuit(state);
|
||||||
/* If rc is 0, just let main return normally rather than calling exit.
|
/* If rc is 0, just let main return normally rather than calling exit.
|
||||||
* This allows testing of platforms where SDL_main is required and does meaningful cleanup.
|
* This allows testing of platforms where SDL_main is required and does meaningful cleanup.
|
||||||
|
@ -87,7 +87,7 @@ open_audio()
|
||||||
device = SDL_OpenAudioDevice(NULL, SDL_FALSE, &wave.spec, NULL, 0);
|
device = SDL_OpenAudioDevice(NULL, SDL_FALSE, &wave.spec, NULL, 0);
|
||||||
if (!device) {
|
if (!device) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError());
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError());
|
||||||
SDL_FreeWAV(wave.sound);
|
SDL_free(wave.sound);
|
||||||
quit(2);
|
quit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue