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
This commit is contained in:
Sam Lantinga 2007-08-17 02:54:12 +00:00
parent 79f25b0b9e
commit 8acf15bdaa

View file

@ -76,7 +76,7 @@ SDL_FreeUnixAudioDevices(char ***devices, int *devCount)
int i = *devCount;
if ((i > 0) && (*devices != NULL)) {
while (i--) {
SDL_free((*devices)[*devCount]);
SDL_free((*devices)[i]);
}
}