Various qdel helpers

This commit is contained in:
Aronai Sieyes
2021-05-15 16:10:08 -04:00
parent b9eb4eac15
commit e42547db74
8 changed files with 32 additions and 8 deletions
@@ -266,7 +266,7 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
. = ..()
if(exonet)
exonet.remove_address()
exonet = null
qdel_null(exonet)
return ..()
// Proc: register_device()
@@ -119,6 +119,9 @@ GLOBAL_LIST_BOILERPLATE(all_tracking_implants, /obj/item/weapon/implant/tracking
/obj/item/weapon/implant/tracking/Destroy()
STOP_PROCESSING(SSobj, src)
if(part)
part.implants -= src
part = imp_in = null
return ..()
/obj/item/weapon/implant/tracking/process()
@@ -41,13 +41,18 @@
/obj/item/weapon/storage/Destroy()
close_all()
QDEL_NULL(boxes)
QDEL_NULL(src.storage_start)
QDEL_NULL(src.storage_continue)
QDEL_NULL(src.storage_end)
QDEL_NULL(src.stored_start)
QDEL_NULL(src.stored_continue)
QDEL_NULL(src.stored_end)
QDEL_NULL(storage_start)
QDEL_NULL(storage_continue)
QDEL_NULL(storage_end)
QDEL_NULL(stored_start)
QDEL_NULL(stored_continue)
QDEL_NULL(stored_end)
QDEL_NULL(closer)
if(ismob(loc))
var/mob/M = loc
M.remove_from_mob(src)
. = ..()
/obj/item/weapon/storage/MouseDrop(obj/over_object as obj)