mirror of
https://github.com/appgurueu/modlib.git
synced 2025-02-16 16:22:30 +01:00
SQLite3 persistence: Fix garbage collection
This commit is contained in:
@ -97,6 +97,7 @@ function set(self, table, key, value)
|
|||||||
add_table(self, key)
|
add_table(self, key)
|
||||||
add_table(self, value)
|
add_table(self, value)
|
||||||
end
|
end
|
||||||
|
local previous_value = table[key]
|
||||||
if type(previous_value) == "table" then
|
if type(previous_value) == "table" then
|
||||||
decrement_reference_count(self, previous_value)
|
decrement_reference_count(self, previous_value)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user