[code] The console history is not emptied when reloading Python.

Change-Id: I5dedcfc8279f5f4fe9846419f6861c7d7cb3f973
This commit is contained in:
Léa Saviot
2017-11-29 16:55:43 +01:00
parent e43bbd38f2
commit 6ab9a36472

View File

@@ -55,7 +55,6 @@ bool ConsoleController::loadPythonEnvironment(bool autoImportScripts) {
void ConsoleController::unloadPythonEnvironment() {
if (pythonEnvironmentIsLoaded()) {
m_consoleStore.clear();
MicroPython::deinit();
free(m_pythonHeap);
m_pythonHeap = nullptr;