diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 22:07:07 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 22:07:07 +0100 |
| commit | 3fa7b0bbeac692c2c66a0e6c451b3ff3c56f1e31 (patch) | |
| tree | 6a691cfca39b7930a9cb467a2239e64df76d7cf3 | |
| parent | a1fdbc79ccbdc08241d20cf96d9df89118a840ab (diff) | |
| -rw-r--r-- | src/source.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source.cc b/src/source.cc index d4d87fa..b8c04a7 100644 --- a/src/source.cc +++ b/src/source.cc @@ -63,8 +63,8 @@ void buffer_deinit(Buffer* buffer) { slice_deallocate(buffer->allocator, &buffer->file); slice_deallocate(buffer->allocator, &buffer->content); + memset(buffer, 0, sizeof(*buffer)); - deallocate(allocator, (u8*)buffer); } |
