]> jxnshi.xyz Git - mesange.git/commitdiff
Set allocator
authorjxnshi <jxnshi@proton.me>
Wed, 22 Jan 2025 15:41:17 +0000 (16:41 +0100)
committerjxnshi <jxnshi@proton.me>
Wed, 22 Jan 2025 15:41:17 +0000 (16:41 +0100)
client-cli/main.odin

index 0ec2f98c13a98f38bf64aed6ea38f9f97349ddb7..38aaee0c25b5e1b9dc017a1a15b5aff32230699c 100644 (file)
@@ -126,13 +126,13 @@ app_deinit :: proc(app: ^App) {
         net.close(host)
     }
 
-    // profile_deinit(app.profile)
+    profile_deinit(app.profile)
 
     if len(app.profile_password) != 0 {
         delete(app.profile_password)
     }
 
-    // config_deinit(app.config)
+    config_deinit(app.config)
 
     if len(app.info_bar_content) != 0 {
         delete(app.info_bar_content)
@@ -710,6 +710,7 @@ main :: proc() {
 
     // Setup state thread context.
     handle_state_thread_context := runtime.default_context()
+    handle_state_thread_context.allocator := context.allocator
     handle_state_thread_context.logger = context.logger
     handle_state_thread_context.random_generator = context.random_generator