summaryrefslogtreecommitdiff
path: root/xmake/core/base/io.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-04 00:33:36 +0800
committerruki <[email protected]>2020-08-04 00:33:36 +0800
commit8b08fbb9f5f0f54dd1232f4bf387932116dde47f (patch)
tree4fd29d81f1bbd9d5beb7397e15340c40e0f00284 /xmake/core/base/io.lua
parent03573469f84c12aa8f62b3c777f409c5bd8a679c (diff)
remove lightuserdata for file
Diffstat (limited to 'xmake/core/base/io.lua')
-rw-r--r--xmake/core/base/io.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua
index 936bd5868..189ff536f 100644
--- a/xmake/core/base/io.lua
+++ b/xmake/core/base/io.lua
@@ -109,6 +109,7 @@ end
-- gc(file)
function _file:__gc()
if self:cdata() and io.file_close(self:cdata()) then
+ -- remove ref to notify gc that it should be freed
self._FILE = nil
end
end