URI:
       tFix crash when destroying font - ltk - Socket-based GUI for X11 (WIP)
  HTML git clone git://lumidify.org/ltk.git (fast, but not encrypted)
  HTML git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 5d5aaf08dc19d798f31cab139e1030918c1f62ac
   DIR parent dceafa37894c4e9c6a53a784288170ffc9c0fd66
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Thu, 24 Dec 2020 22:17:17 +0100
       
       Fix crash when destroying font
       
       Diffstat:
         M ltkc.c                              |       1 +
         M text_stb.c                          |       3 +--
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/ltkc.c b/ltkc.c
       t@@ -150,5 +150,6 @@ int main(int argc, char *argv[]) {
                        }
                }
        
       +        /* FIXME: close socket */
                return 0;
        }
   DIR diff --git a/text_stb.c b/text_stb.c
       t@@ -205,7 +205,7 @@ ltk_init_text(const char *default_font, Display *dpy, int screen, Colormap cm) {
        void
        ltk_cleanup_text(void) {
                for (int i = 0; i < tm.num_fonts; i++) {
       -                ltk_destroy_font(&tm.fonts[i]);
       +                ltk_destroy_font(tm.fonts[i]);
                }
                if (!tm.glyph_cache) return;
                for (int k = kh_begin(tm.glyph_cache); k != kh_end(tm.glyph_cache); k++) {
       t@@ -335,7 +335,6 @@ ltk_create_font(char *path, uint16_t id, int index) {
        
        static void
        ltk_destroy_font(LtkFont *font) {
       -        /* FIXME: why does this cause error? */
                free(font->info.data);
                free(font);
        }