Changed clean-up order in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 21 May 2015 21:25:32 +0200
changeset 9610 27485b58df22
parent 9609 897b25f560d0
child 9611 c23b2fa8d4c2
Changed clean-up order in test program.
test/testaudiohotplug.c
--- a/test/testaudiohotplug.c	Thu May 21 21:25:14 2015 +0200
+++ b/test/testaudiohotplug.c	Thu May 21 21:25:32 2015 +0200
@@ -175,8 +175,8 @@
 #endif
 
     /* Clean up on signal */
+    SDL_FreeWAV(sound);
     SDL_Quit();
-    SDL_FreeWAV(sound);
     return (0);
 }