Created
May 11, 2013 13:33
-
-
Save PilzAdam/5559987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main.cpp b/src/main.cpp | |
index a3ec6cc..56cb310 100644 | |
--- a/src/main.cpp | |
+++ b/src/main.cpp | |
@@ -1912,6 +1912,10 @@ int main(int argc, char *argv[]) | |
} | |
} | |
sound->stopSound(handle); | |
+ if(sound != &dummySoundManager){ | |
+ delete sound; | |
+ sound = NULL; | |
+ } | |
infostream<<"Dropping main menu"<<std::endl; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment