changeset 2258:771bd3389e3a

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.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Aug 2007 02:54:12 +0000
parents 340942cfda48
children 1e690901ecd7
files src/audio/SDL_audiodev.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]);
         }
     }