Clear the config cache just before the main loop starts, after all setup is done
authorJim Morris <morris@wolfman.com>
Sun, 22 Sep 2013 21:48:08 +0000 (14:48 -0700)
committerJim Morris <morris@wolfman.com>
Sun, 22 Sep 2013 21:48:08 +0000 (14:48 -0700)
src/main.cpp

index b60c2d4..999f068 100644 (file)
@@ -107,6 +107,9 @@ int main() {
     kernel->add_module( &dfu );
     kernel->add_module( &u );
 
+    // clear up the config cache to save some memory
+    kernel->config->config_cache_clear();
+
     // Main loop
     while(1){
         kernel->call_event(ON_MAIN_LOOP);