fix(memleak): add a "nullify" function to user wrapper. This is stupid,

find a better way. See HabitRPG/habitrpg#4079
This commit is contained in:
Tyler Renelle
2014-10-01 15:43:32 -06:00
parent 93f59936c4
commit e754ed48f7
+4
View File
@@ -1384,6 +1384,10 @@ api.wrap = (user, main=true) ->
user.achievements.ultimateGear = shouldGrant
nullify: ->
user.ops = null
user.fns = null
user = null
# ----------------------------------------------------------------------
# Virtual Attributes