From 71dba2f83bd4099a079ff74cd81e713bd1fd5746 Mon Sep 17 00:00:00 2001 From: jxnshi Date: Wed, 22 Jan 2025 16:41:17 +0100 Subject: [PATCH] Set allocator --- client-cli/main.odin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client-cli/main.odin b/client-cli/main.odin index 0ec2f98..38aaee0 100644 --- a/client-cli/main.odin +++ b/client-cli/main.odin @@ -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 -- 2.49.0