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
@@ -20,6 +20,10 @@
. = ..()
pursuit_target = WEAKREF(find_nearest_target())
/obj/effect/anomaly/bioscrambler/Destroy()
. = ..()
pursuit_target = null
/obj/effect/anomaly/bioscrambler/anomalyEffect(seconds_per_tick)
. = ..()
if(stats)
@@ -31,6 +31,8 @@
/datum/anomaly_stats/Destroy(force)
QDEL_NULL(modifier)
attached_anomaly = null
attached_harvester = null
return ..()
/datum/anomaly_stats/proc/randomize_particle_types()
@@ -15,6 +15,7 @@
var/client/C = CW?.resolve()
if(C)
C.images -= src
clients.Cut()
// Mostly for motion echos, but someone will probably find another use for it... So parent type gets it instead!
/image/client_only/proc/place_from_root(var/turf/At)
+1
View File
@@ -168,6 +168,7 @@
/obj/item/Destroy()
d_stage_overlay = null
exploit_for = null
if(item_tf_spawn_allowed)
GLOB.item_tf_spawnpoints -= src
if(ismob(loc))
@@ -114,6 +114,7 @@
SSradio.remove_object(src, frequency)
for (var/ch_name in channels)
SSradio.remove_object(src, GLOB.radiochannels[ch_name])
bs_tx_weakref = null
return ..()
/obj/item/radio/proc/recalculateChannels()
@@ -24,6 +24,7 @@
qdel(radio)
camera = null
radio = null
showing = null
. = ..()
/obj/item/tvcamera/examine()