fix: load case data early on startup instead of on demand
This is to avoid an issue with the decompressor causing heap corruption on macos. closes #169
This commit is contained in:
parent
70a33f1ebf
commit
9f2e3bf4b4
4 changed files with 19 additions and 15 deletions
|
@ -41,6 +41,8 @@ pub fn main() anyerror!void {
|
|||
}
|
||||
|
||||
const a = std.heap.c_allocator;
|
||||
const case_data = @import("Buffer").unicode.get_case_data();
|
||||
_ = case_data; // no need to free case_data as it is globally static
|
||||
|
||||
const Flags = struct {
|
||||
pub const description =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue