summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-29 16:51:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-29 16:51:32 +0800
commit524be33ca91cd6267da57dc2b9107728e27f5430 (patch)
treed42d0cdc8cc7475266ebc0887044ec10455871f5 /script/parser
parent697b913d1dea1d61a7774058e2c8a5ee8c6ac084 (diff)
downloadlua-language-server-524be33ca91cd6267da57dc2b9107728e27f5430.zip
clear memory
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 87ca29f4..939aa462 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2493,6 +2493,9 @@ function m.searchSameFields(status, simple, mode)
local obj = queues[queueLen]
local start = starts[queueLen]
local force = forces[queueLen]
+ queues[queueLen] = nil
+ starts[queueLen] = nil
+ forces[queueLen] = nil
queueLen = queueLen - 1
local lock = locks[start]
if not lock then
@@ -2510,7 +2513,7 @@ function m.searchSameFields(status, simple, mode)
end
end
end
- --deallocQueue(queues, starts, forces)
+ deallocQueue(queues, starts, forces)
end
function m.getCallerInSameFile(status, func)