Change the registry importer module
[bertos.git] / bertos / emul / emul.cpp
index 9b06fb90269236d1a34a07164ce9b9af2b47291a..6327a5bf0ca454e161b26c0de74e7cbbdbe60e9c 100644 (file)
@@ -39,8 +39,6 @@
 #include "emul.h"
 #include "emulwin.h"
 
-#include "cfg/cfg_kern.h"
-
 #include <cfg/module.h>
 
 #include <QtGui/qapplication.h>
@@ -91,6 +89,10 @@ extern "C" void emul_cleanup()
 {
        MOD_CLEANUP(emul);
 
+       // Timer must be made inactive before we destroy the emulator
+       extern bool timer_initialized;
+       ASSERT(!timer_initialized);
+
        delete emul;
        emul = NULL;
 }