mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
Or did it?!
This commit is contained in:
@@ -170,8 +170,8 @@ clean :: proc(path: string, allocator := context.allocator) -> string {
|
|||||||
cleaned, new_allocation := from_slash(s);
|
cleaned, new_allocation := from_slash(s);
|
||||||
if new_allocation {
|
if new_allocation {
|
||||||
delete(s);
|
delete(s);
|
||||||
|
lazy_buffer_destroy(out);
|
||||||
}
|
}
|
||||||
lazy_buffer_destroy(out);
|
|
||||||
return cleaned;
|
return cleaned;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,8 +397,8 @@ lazy_buffer_string :: proc(lb: ^Lazy_Buffer) -> string {
|
|||||||
return string(z);
|
return string(z);
|
||||||
}
|
}
|
||||||
@(private)
|
@(private)
|
||||||
delete(lb.b);
|
|
||||||
lazy_buffer_destroy :: proc(lb: ^Lazy_Buffer) {
|
lazy_buffer_destroy :: proc(lb: ^Lazy_Buffer) {
|
||||||
|
delete(lb.b);
|
||||||
free(lb);
|
free(lb);
|
||||||
lb^ = {};
|
lb^ = {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user