Merge pull request #2362 from Fox-McCloud/gc-everything

Garbage Collect Everything
This commit is contained in:
TheDZD
2015-10-18 16:44:35 -04:00
10 changed files with 14 additions and 27 deletions
+2 -3
View File
@@ -602,12 +602,11 @@ atom/proc/create_reagents(var/max_vol)
reagents.my_atom = src
/datum/reagents/Destroy()
..()
. = ..()
processing_objects.Remove(src)
for(var/datum/reagent/R in reagent_list)
qdel(R)
reagent_list.Cut()
reagent_list = null
if(my_atom && my_atom.reagents == src)
my_atom.reagents = null
return QDEL_HINT_QUEUE
my_atom.reagents = null
@@ -76,6 +76,5 @@
return
/datum/reagent/Destroy()
..()
holder = null
return QDEL_HINT_QUEUE
. = ..()
holder = null