test/simplesdl: Use SDL_malloc/SDL_free instead of malloc/free.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Aug 2016 01:26:47 -0400
changeset 60 c6149b747a9e
parent 59 6445337eabc2
child 61 fb533bb8633e
test/simplesdl: Use SDL_malloc/SDL_free instead of malloc/free.
test/simplesdl.c
--- a/test/simplesdl.c	Fri Jan 01 12:58:49 2016 -0500
+++ b/test/simplesdl.c	Fri Aug 26 01:26:47 2016 -0400
@@ -67,7 +67,7 @@
         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 queue_audio(const THEORAPLAY_AudioPacket *audio)
 {
-    AudioQueue *item = (AudioQueue *) malloc(sizeof (AudioQueue));
+    AudioQueue *item = (AudioQueue *) SDL_malloc(sizeof (AudioQueue));
     if (!item)
     {
         THEORAPLAY_freeAudio(audio);