mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
a weak table does not need its keys removed
also, this apparently increases the chance for obscure edge case bugs in lua gc
This commit is contained in:
parent
b9cc1663b2
commit
ee8c2902e2
@ -1093,7 +1093,6 @@ local userdataWrapper = {
|
||||
end,
|
||||
__gc = function(self)
|
||||
local data = wrappedUserdata[self]
|
||||
wrappedUserdata[self] = nil
|
||||
userdata.dispose(data)
|
||||
end,
|
||||
-- This is the persistence protocol for userdata. Userdata is considered
|
||||
|
Loading…
x
Reference in New Issue
Block a user