Skip to content

Commit

Permalink
chore: gc more env obj
Browse files Browse the repository at this point in the history
  • Loading branch information
mirtlecn committed May 8, 2024
1 parent 297930c commit 2aa44a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ function f.fini( env )
if env.if_reverse_lookup or env.if_schema_lookup then
env.notifier:disconnect()
env.commit_notifier:disconnect()
if env.mem or env.search then
if env.mem or env.search or env.db_table then
env.db_table = nil
env.mem = nil
env.search = nil
collectgarbage( 'collect' )
Expand Down

0 comments on commit 2aa44a9

Please sign in to comment.