Content store: Fix storage leak by storing screenshots in cache (#8137)

This commit is contained in:
rubenwardy
2019-01-31 16:35:55 +00:00
committed by Paramat
parent 944e9f5acb
commit 572ba83b30
4 changed files with 15 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ local store = {}
local package_dialog = {}
-- Screenshot
local screenshot_dir = os.tempfolder()
local screenshot_dir = core.get_cache_path() .. DIR_DELIM .. "cdb"
assert(core.create_dir(screenshot_dir))
local screenshot_downloading = {}
local screenshot_downloaded = {}