Browse Source

Fix crash when closing program during task

filter-focus
Macoy Madson 1 year ago
parent
commit
f5ea61b499
  1. 6
      src/FileHelper.cake

6
src/FileHelper.cake

@ -1690,6 +1690,9 @@ Depending on the error, open the UserData.cakedata file in a text editor and see
(SDL_Log "error: failed to save state")))
(load-save-shutdown)
;; We need to wait for all tasks to complete before we start destroying things they might be using
(task-system-shutdown)
(destroy-directory-state (addr listing-state))
(strdict-free g-userdata-dict)
(dict-free g-categories-dict)
@ -1701,8 +1704,7 @@ Depending on the error, open the UserData.cakedata file in a text editor and see
(treemap-opengl-shutdown)
(free-treemap-file-system-multithreaded-state g-treemap-multithreaded-state)
(dynarray-free g-userdata-output-dir)
(task-system-shutdown)))
(dynarray-free g-userdata-output-dir)))
;;
;; Introspection helpers

Loading…
Cancel
Save