From df283ee49bfc0f21c9f3d2a6f435e225e695e1dc Mon Sep 17 00:00:00 2001 From: Patrick Cleaveliln Date: Sat, 19 Jul 2025 23:03:10 +0000 Subject: [PATCH] fix --- src/main.odin | 15 --------------- src/panels/grep.odin | 1 - src/panels/panels.odin | 1 - 3 files changed, 17 deletions(-) diff --git a/src/main.odin b/src/main.odin index 91d2863..a555475 100644 --- a/src/main.odin +++ b/src/main.odin @@ -158,13 +158,6 @@ expose_event_watcher :: proc "c" (state: rawptr, event: ^sdl2.Event) -> i32 { } main :: proc() { - track: mem.Tracking_Allocator - mem.tracking_allocator_init(&track, context.allocator) - context.allocator = mem.tracking_allocator(&track) - - defer { - } - ts.set_allocator() _command_arena: mem.Arena @@ -506,12 +499,4 @@ main :: proc() { } sdl2.Quit(); - - if len(track.allocation_map) > 0 { - fmt.eprintf("=== %v allocations not freed: ===\n", len(track.allocation_map)) - for _, entry in track.allocation_map { - fmt.eprintf("- %v bytes @ %v\n", entry.size, entry.location) - } - } - mem.tracking_allocator_destroy(&track) } diff --git a/src/panels/grep.odin b/src/panels/grep.odin index 2becc35..31ba9e8 100644 --- a/src/panels/grep.odin +++ b/src/panels/grep.odin @@ -10,7 +10,6 @@ import "vendor:sdl2" import ts "../tree_sitter" import "../core" -import "../input" import "../util" import "../ui" diff --git a/src/panels/panels.odin b/src/panels/panels.odin index e858b17..33ac9b1 100644 --- a/src/panels/panels.odin +++ b/src/panels/panels.odin @@ -10,7 +10,6 @@ import "vendor:sdl2" import ts "../tree_sitter" import "../core" -import "../input" import "../util" import "../ui"