From 3d063d7295879272fd8f3d737ecd0c5e9c382384 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 27 Dec 2022 14:53:10 +0100
Subject: [PATCH] More renaming SDL_FreeWAV() to SDL_Free()
---
VisualC-GDK/tests/testgdk/src/testgdk.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/VisualC-GDK/tests/testgdk/src/testgdk.cpp b/VisualC-GDK/tests/testgdk/src/testgdk.cpp
index f533c9d5bcc0..c5ab10389563 100644
--- a/VisualC-GDK/tests/testgdk/src/testgdk.cpp
+++ b/VisualC-GDK/tests/testgdk/src/testgdk.cpp
@@ -70,7 +70,7 @@ quit(int rc)
{
SDL_free(sprites);
close_audio();
- SDL_FreeWAV(wave.sound);
+ SDL_free(wave.sound);
SDLTest_CommonQuit(state);
/* 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.
@@ -87,7 +87,7 @@ open_audio()
device = SDL_OpenAudioDevice(NULL, SDL_FALSE, &wave.spec, NULL, 0);
if (!device) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open audio: %s\n", SDL_GetError());
- SDL_FreeWAV(wave.sound);
+ SDL_free(wave.sound);
quit(2);
}