diff options
| author | dam <dam@gudinoff> | 2024-08-28 13:29:57 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-08-28 14:51:07 +0100 |
| commit | 2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533 (patch) | |
| tree | fec5dd8c33a6225435add99e016ae15996f19de1 /modules/TUI/key_map.jai | |
| parent | 10045da39d6eb6aa767b360fbea43d5361383c15 (diff) | |
| download | task-time-tracker-2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533.tar.zst task-time-tracker-2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533.zip | |
Update TUI module to fix memory leak; Only sort if tasks are available.v3.2
Diffstat (limited to 'modules/TUI/key_map.jai')
| -rw-r--r-- | modules/TUI/key_map.jai | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/TUI/key_map.jai b/modules/TUI/key_map.jai index f0754a7..43762f4 100644 --- a/modules/TUI/key_map.jai +++ b/modules/TUI/key_map.jai @@ -2,6 +2,11 @@ key_map: Table(string, Key); +reset_key_map :: () { + table_reset(*key_map); + deinit(*key_map); +} + setup_key_map :: () { if key_map.count > 0 then return; |
