mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
BookInfoManager: Actually close the document after extraction
DocumentRegistry just decreases a ref, it doesn't close anything. Plug the same Document leak in a few other places, and document this.
This commit is contained in:
@@ -91,6 +91,7 @@ function Document:unlock(password)
|
||||
end
|
||||
|
||||
-- this might be overridden by a document implementation
|
||||
-- (in which case, do make sure it calls this one, too, to avoid refcounting mismatches in DocumentRegistry!)
|
||||
function Document:close()
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
if self.is_open then
|
||||
|
||||
Reference in New Issue
Block a user