Commit 8acf15bd authored by Sam Lantinga's avatar Sam Lantinga

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402620
parent 79f25b0b
...@@ -76,7 +76,7 @@ SDL_FreeUnixAudioDevices(char ***devices, int *devCount) ...@@ -76,7 +76,7 @@ SDL_FreeUnixAudioDevices(char ***devices, int *devCount)
int i = *devCount; int i = *devCount;
if ((i > 0) && (*devices != NULL)) { if ((i > 0) && (*devices != NULL)) {
while (i--) { while (i--) {
SDL_free((*devices)[*devCount]); SDL_free((*devices)[i]);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment