aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Barnoy2010-11-18 07:17:28 +0000
committerYotam Barnoy2010-11-18 07:17:28 +0000
commit3631a5f90b031c7961557fa35e39c6d51bde090e (patch)
tree22fb8bf4ec7686264dc9e06b6bda66e56d5bb5e5
parentd9713965728b61b7f8e455287a595f250010399b (diff)
downloadscummvm-rg350-3631a5f90b031c7961557fa35e39c6d51bde090e.tar.gz
scummvm-rg350-3631a5f90b031c7961557fa35e39c6d51bde090e.tar.bz2
scummvm-rg350-3631a5f90b031c7961557fa35e39c6d51bde090e.zip
MAIN: added early call to getAudioCdManager to prevent late allocation
This reduces fragmentation. svn-id: r54310
-rw-r--r--base/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 2af1e3382f..9a788b7e81 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -372,6 +372,10 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
setupGraphics(system);
+ // Init the audio cd manager. It won't be released, so to prevent fragmentation,
+ // we'll create it early on.
+ system.getAudioCDManager();
+
// Init the event manager. As the virtual keyboard is loaded here, it must
// take place after the backend is initiated and the screen has been setup
system.getEventManager()->init();