Fixed memory leak: widget factories need to be deleted

in opentxClose()
This commit is contained in:
Raphael Coeffic
2021-06-12 07:38:31 +02:00
parent c37bc91475
commit 78915daf95
4 changed files with 17 additions and 0 deletions
+2
View File
@@ -1518,6 +1518,8 @@ void opentxClose(uint8_t shutdown)
//TODO: In fact we want only to empty the trash (private method)
MainWindow::instance()->run();
luaUnregisterWidgets();
luaClose(&lsWidgets);
#endif