Date: Fri, 17 Aug 2007 01:12:31 +0200
authorSam Lantinga <slouken@libsdl.org>
Fri, 17 Aug 2007 02:54:12 +0000
changeset 2258 771bd3389e3a
parent 2257 340942cfda48
child 2259 1e690901ecd7
Date: Fri, 17 Aug 2007 01:12:31 +0200 From: Couriersud Subject: fix for audio dsp exit crash / various dfb issues The current code will crash on exiting an application. The attached diff fixes the issue.
src/audio/SDL_audiodev.c
--- a/src/audio/SDL_audiodev.c	Fri Aug 17 00:54:53 2007 +0000
+++ b/src/audio/SDL_audiodev.c	Fri Aug 17 02:54:12 2007 +0000
@@ -76,7 +76,7 @@
     int i = *devCount;
     if ((i > 0) && (*devices != NULL)) {
         while (i--) {
-            SDL_free((*devices)[*devCount]);
+            SDL_free((*devices)[i]);
         }
     }