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:
@@ -1384,6 +1384,10 @@ api.wrap = (user, main=true) ->
|
||||
|
||||
user.achievements.ultimateGear = shouldGrant
|
||||
|
||||
nullify: ->
|
||||
user.ops = null
|
||||
user.fns = null
|
||||
user = null
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Virtual Attributes
|
||||
|
||||
Reference in New Issue
Block a user