diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-01-31 16:35:55 +0000 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2019-01-31 16:35:55 +0000 |
commit | 572ba83b3084e3d3abd294acb914746d29822a98 (patch) | |
tree | 2fb0235c3b73cce8bbd80292d7a18c763eb982d2 /builtin | |
parent | 944e9f5acbac8971643553eb6e351abe362c4c17 (diff) | |
download | minetest-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.lua | 2 |
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 = {} |