summaryrefslogtreecommitdiff
path: root/server/src/core/value.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-30 14:35:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-30 14:35:21 +0800
commitea8837d00448571602f9de0e918ebd97c03bc0f0 (patch)
tree7b2fa680bf42452433a5796cd87dcd5b9d97b3be /server/src/core/value.lua
parent024f7be5227c9e010f0dacad55d7e923065d6eff (diff)
downloadlua-language-server-ea8837d00448571602f9de0e918ebd97c03bc0f0.zip
修正一处泄漏
Diffstat (limited to 'server/src/core/value.lua')
-rw-r--r--server/src/core/value.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/core/value.lua b/server/src/core/value.lua
index 53d5c749..d1933684 100644
--- a/server/src/core/value.lua
+++ b/server/src/core/value.lua
@@ -197,10 +197,8 @@ end
function mt:removeUri(uri)
if self._child then
self._child[uri] = nil
- self:rawEachField(function (field)
- if field.value then
- field.value:removeUri(uri)
- end
+ self:rawEachField(function (key, field)
+ field.value:removeUri(uri)
end)
end
if self._info then