aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-01-31 16:35:55 +0000
committerParamat <paramat@users.noreply.github.com>2019-01-31 16:35:55 +0000
commit572ba83b3084e3d3abd294acb914746d29822a98 (patch)
tree2fb0235c3b73cce8bbd80292d7a18c763eb982d2 /builtin
parent944e9f5acbac8971643553eb6e351abe362c4c17 (diff)
downloadminetest-572ba83b3084e3d3abd294acb914746d29822a98.tar.gz
minetest-572ba83b3084e3d3abd294acb914746d29822a98.tar.bz2
minetest-572ba83b3084e3d3abd294acb914746d29822a98.zip
Content store: Fix storage leak by storing screenshots in cache (#8137)
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/dlg_contentstore.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua
index 0b3cababc..a9164091a 100644
--- a/builtin/mainmenu/dlg_contentstore.lua
+++ b/builtin/mainmenu/dlg_contentstore.lua
@@ -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 = {}