Changed clean-up order in test program.
diff --git a/test/testaudiohotplug.c b/test/testaudiohotplug.c
index 6c3d88c..bf5c09e 100644
--- a/test/testaudiohotplug.c
+++ b/test/testaudiohotplug.c
@@ -175,8 +175,8 @@ main(int argc, char *argv[])
#endif
/* Clean up on signal */
- SDL_Quit();
SDL_FreeWAV(sound);
+ SDL_Quit();
return (0);
}