Fixed memory leak: widget factories need to be deleted
in opentxClose()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user