From 22cceff7d5d9ecc31f8bf985e15d8a0488d0beb5 Mon Sep 17 00:00:00 2001 From: Kelet Date: Thu, 7 Nov 2013 14:21:53 -0500 Subject: [PATCH] Close temporary file used in going to declaration --- editors/textadept/modules/dmd/dcd.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/editors/textadept/modules/dmd/dcd.lua b/editors/textadept/modules/dmd/dcd.lua index 3849dc9..e03cb64 100644 --- a/editors/textadept/modules/dmd/dcd.lua +++ b/editors/textadept/modules/dmd/dcd.lua @@ -113,6 +113,7 @@ function M.gotoDeclaration() p:close() local tmpFile = io.open(fileName, "r") local r = tmpFile:read("*a") + io.close(tmpFile) if r ~= "Not found\n" then path, position = r:match("^(.-)\t(%d+)") if (path ~= nil and position ~= nil) then