diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-30 14:35:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-30 14:35:21 +0800 |
commit | ea8837d00448571602f9de0e918ebd97c03bc0f0 (patch) | |
tree | 7b2fa680bf42452433a5796cd87dcd5b9d97b3be /server/src | |
parent | 024f7be5227c9e010f0dacad55d7e923065d6eff (diff) | |
download | lua-language-server-ea8837d00448571602f9de0e918ebd97c03bc0f0.zip |
修正一处泄漏
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/value.lua | 6 |
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 |