From 3631a5f90b031c7961557fa35e39c6d51bde090e Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Thu, 18 Nov 2010 07:17:28 +0000 Subject: MAIN: added early call to getAudioCdManager to prevent late allocation This reduces fragmentation. svn-id: r54310 --- base/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base') 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(); -- cgit v1.2.3