Converts Most Destroys to use QDEL_NULL

This commit is contained in:
Fox-McCloud
2017-04-04 23:08:41 -04:00
parent ba8b1dae55
commit 5631d36ff8
121 changed files with 217 additions and 468 deletions
+2 -6
View File
@@ -53,15 +53,11 @@ Pipelines + Other Objects -> Pipe network
stored = new(src, make_from = src)
/obj/machinery/atmospherics/Destroy()
if(stored)
qdel(stored)
stored = null
QDEL_NULL(stored)
for(var/mob/living/L in src) //ventcrawling is serious business
L.remove_ventcrawl()
L.forceMove(get_turf(src))
if(pipe_image)
qdel(pipe_image) //we have to del it, or it might keep a ref somewhere else
pipe_image = null
QDEL_NULL(pipe_image) //we have to del it, or it might keep a ref somewhere else
return ..()
// Icons/overlays/underlays
+1 -2
View File
@@ -21,8 +21,7 @@
/obj/machinery/atmospherics/pipe/Destroy()
releaseAirToTurf()
qdel(air_temporary)
air_temporary = null
QDEL_NULL(air_temporary)
var/turf/T = loc
for(var/obj/machinery/meter/meter in T)