From 5b9e039d8a7c89bea6a08e7a1b5b1cd0caec3b15 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 26 Aug 2016 01:26:47 -0400 Subject: [PATCH] test/simplesdl: Use SDL_malloc/SDL_free instead of malloc/free. --- test/simplesdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simplesdl.c b/test/simplesdl.c index b2759e7..c349939 100644 --- a/test/simplesdl.c +++ b/test/simplesdl.c @@ -67,7 +67,7 @@ static void SDLCALL audio_callback(void *userdata, Uint8 *stream, int len) if (item->offset >= item->audio->frames) { THEORAPLAY_freeAudio(item->audio); - free((void *) item); + SDL_free((void *) item); audio_queue = next; } // if } // while @@ -82,7 +82,7 @@ static void SDLCALL audio_callback(void *userdata, Uint8 *stream, int len) static void queue_audio(const THEORAPLAY_AudioPacket *audio) { - AudioQueue *item = (AudioQueue *) malloc(sizeof (AudioQueue)); + AudioQueue *item = (AudioQueue *) SDL_malloc(sizeof (AudioQueue)); if (!item) { THEORAPLAY_freeAudio(audio);