1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix InputMap and display server not nulling singleton on free

This commit is contained in:
Paulb23
2021-07-11 14:26:18 +01:00
parent 55a20129d6
commit d186862338
3 changed files with 6 additions and 0 deletions

View File

@@ -746,3 +746,7 @@ InputMap::InputMap() {
ERR_FAIL_COND_MSG(singleton, "Singleton in InputMap already exist.");
singleton = this;
}
InputMap::~InputMap() {
singleton = nullptr;
}