]> git.mcshandy.xyz Git - picker/commitdiff
Forgot a test line. I ran asan and valgrind and it looks like they're
authorrandy <randy@mcshandy.xyz>
Fri, 29 Sep 2023 03:13:38 +0000 (22:13 -0500)
committerrandy <randy@mcshandy.xyz>
Fri, 29 Sep 2023 03:30:08 +0000 (22:30 -0500)
happy outside of GPU shit that's out of my hands.

source/main.c

index 20cad9a456f8e198bea13fd37fc7046c6dedcd37..7feaca11f698f6d3317bdb99d96895affe35cf8c 100644 (file)
@@ -23,9 +23,7 @@ int init()
        TTF_Init();
        runtime.font = TTF_OpenFont(config_font_path, config_font_size);
        assert(runtime.font != NULL);
-
        init_renderer(&runtime);
-
        runtime.keep_alive = 1;
 
        return 0;
@@ -54,15 +52,14 @@ int main(void)
        }
 
        TTF_Quit();
-
        int32_t refresh_layout(Runtime_Info* runtime);
-       refresh_layout(NULL);
        return 0;
 }
 
 void killterm_handler(int signum)
 {
        shutdown_renderer(&runtime);
+       TTF_CloseFont(runtime.font);
        TTF_Quit();
        exit(0);
 }