mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix local name memory leak
This commit is contained in:
parent
a807ee6372
commit
1b511936f5
1 changed files with 2 additions and 2 deletions
|
@ -6,14 +6,14 @@ local pool = {}
|
|||
|
||||
local tick = false
|
||||
|
||||
local name
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local name
|
||||
name = player:get_player_name()
|
||||
pool[name] = 0
|
||||
end)
|
||||
|
||||
local name
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local name
|
||||
name = player:get_player_name()
|
||||
pool[name] = nil
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue