[MIRROR] Weakref cleanup (#12704)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-04-21 05:14:08 -04:00
committed by GitHub
co-authored by Will Cameron Lennox
parent d8b11e32ae
commit ed7d46efb1
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
@@ -166,6 +166,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()