diff options
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 900d73a28d..44b0aa908d 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -408,6 +408,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { #if defined(ONE_PLUGIN_AT_A_TIME) && defined(DYNAMIC_MODULES) // do our best to prevent fragmentation by unloading as soon as we can PluginManager::instance().unloadPluginsExcept(PLUGIN_TYPE_ENGINE, NULL, false); + // reallocate the config manager to get rid of any fragmentation + ConfMan.defragment(); #endif // Did an error occur ? |