From 15533dce05a9e763cd8c959f1b13170474ee6d04 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Oct 2023 21:37:59 -0700 Subject: [PATCH] Cleaned up warnings from check_stdlib_usage.py --- src/audio/alsa/SDL_alsa_audio.c | 6 +++--- src/audio/vita/SDL_vitaaudio.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index 4c455d30ef..5e116d653d 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -813,10 +813,10 @@ static void ALSA_HotplugIteration(SDL_bool *has_default_output, SDL_bool *has_de SDL_bool have_output = SDL_FALSE; SDL_bool have_input = SDL_FALSE; - free(ioid); + free(ioid); // This should NOT be SDL_free() if (!isoutput && !isinput) { - free(name); + free(name); // This should NOT be SDL_free() continue; } @@ -826,7 +826,7 @@ static void ALSA_HotplugIteration(SDL_bool *has_default_output, SDL_bool *has_de } else if (has_default_capture && isinput) { *has_default_capture = SDL_TRUE; } - free(name); + free(name); // This should NOT be SDL_free() continue; } diff --git a/src/audio/vita/SDL_vitaaudio.c b/src/audio/vita/SDL_vitaaudio.c index d26698bbec..705d19ede1 100644 --- a/src/audio/vita/SDL_vitaaudio.c +++ b/src/audio/vita/SDL_vitaaudio.c @@ -164,7 +164,7 @@ static void VITAAUD_CloseDevice(SDL_AudioDevice *device) } if (!device->iscapture && device->hidden->rawbuf != NULL) { - SDL_aligned_free(device->hidden->rawbuf); // this uses memalign(), not SDL_malloc(). + SDL_aligned_free(device->hidden->rawbuf); // this uses SDL_aligned_alloc(), not SDL_malloc() device->hidden->rawbuf = NULL; } SDL_free(device->hidden);