# HG changeset patch # User Sam Lantinga # Date 1187319252 0 # Node ID 771bd3389e3a4a8483ad7bae1c3695f58550122c # Parent 340942cfda4800648663e8bc87ff7eb1db39f624 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. diff -r 340942cfda48 -r 771bd3389e3a 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]); } }