Weakref cleanup (#19382)

* oh god help

* fixes

* oops

* container runtime

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2026-04-21 04:57:02 -04:00
committed by GitHub
parent 47a0e04bae
commit fb4cf2e80a
34 changed files with 107 additions and 9 deletions
+4
View File
@@ -31,6 +31,10 @@
if (source)
src.source_ref = WEAKREF(source)
/datum/browser/Destroy(force)
. = ..()
source_ref = null
/datum/browser/proc/user_deleted(datum/source)
SIGNAL_HANDLER
user = null
+4
View File
@@ -55,6 +55,10 @@
if(usr)
user = WEAKREF(usr)
/datum/callback/Destroy(force)
. = ..()
user = null
/world/proc/ImmediateInvokeAsync(thingtocall, proctocall, ...)
set waitfor = FALSE
+4
View File
@@ -71,6 +71,10 @@
antag_holder = new
..()
/datum/mind/Destroy(force)
. = ..()
original_character = null
/datum/mind/proc/transfer_to(mob/living/new_character, force = FALSE)
if(!istype(new_character))
log_world("## DEBUG: transfer_to(): Some idiot has tried to transfer_to() a non mob/living mob. Please inform Carn")