You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add option to use handles to RID
Adds an option to compile an alternative implementation for RIDs, which allows checks for erroneous usage patterns as well as providing leak tests.
This commit is contained in:
@@ -2343,6 +2343,10 @@ void Main::cleanup(bool p_force) {
|
||||
ERR_FAIL_COND(!_start_success);
|
||||
}
|
||||
|
||||
#ifdef RID_HANDLES_ENABLED
|
||||
g_rid_database.preshutdown();
|
||||
#endif
|
||||
|
||||
if (script_debugger) {
|
||||
// Flush any remaining messages
|
||||
script_debugger->idle_poll();
|
||||
@@ -2451,4 +2455,8 @@ void Main::cleanup(bool p_force) {
|
||||
unregister_core_types();
|
||||
|
||||
OS::get_singleton()->finalize_core();
|
||||
|
||||
#ifdef RID_HANDLES_ENABLED
|
||||
g_rid_database.shutdown();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user