Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.
--- a/src/events/SDL_events.c Fri Sep 28 03:49:27 2012 -0700
+++ b/src/events/SDL_events.c Fri Sep 28 03:54:39 2012 -0700
@@ -86,6 +86,8 @@
{
int i;
+ SDL_EventQ.active = 0;
+
if (SDL_EventQ.lock) {
SDL_DestroyMutex(SDL_EventQ.lock);
SDL_EventQ.lock = NULL;