Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created May 11, 2013 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/5559987 to your computer and use it in GitHub Desktop.
Save PilzAdam/5559987 to your computer and use it in GitHub Desktop.
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