Application: call __unregisterLimeModule on exit, similar to match the call to __registerLimeModule in the constructor

For some reason, this method was never called.
This commit is contained in:
Josh Tynjala
2023-04-10 13:41:14 -07:00
parent ea8ed5bbe4
commit f43173b942

View File

@@ -594,6 +594,8 @@ class Application extends Module
{
return;
}
__unregisterLimeModule(this);
__backend.exit();
if (Application.current == this)
{
@@ -623,8 +625,6 @@ class Application extends Module
Touch.onStart.remove(onTouchStart);
Touch.onMove.remove(onTouchMove);
Touch.onEnd.remove(onTouchEnd);
onModuleExit(0);
}
// Get & Set Methods