diff src/audio/SDL_audiodev.c @ 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 866052b01ee5
children 99210400e8b9
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]);
         }
     }