follow-up for --showpaths

Ensure that memory allocations are freed up.

Windows:
  Fix a Windows compiler warning.
  Fix an undefined link symbol.
This commit is contained in:
nhmall
2024-12-22 20:45:55 -05:00
parent 57f86662fd
commit a62c62fd96
3 changed files with 11 additions and 1 deletions

View File

@@ -1278,6 +1278,9 @@ freedynamicdata(void)
if (options_set_window_colors_flag)
options_free_window_colors();
if (glyphid_cache_status())
free_glyphid_cache();
/* last, because it frees data that might be used by panic() to provide
feedback to the user; conceivably other freeing might trigger panic */
sysopt_release(); /* SYSCF strings */