summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:07:07 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:07:07 +0100
commit3fa7b0bbeac692c2c66a0e6c451b3ff3c56f1e31 (patch)
tree6a691cfca39b7930a9cb467a2239e64df76d7cf3
parenta1fdbc79ccbdc08241d20cf96d9df89118a840ab (diff)
whitespcaesHEADmaster
-rw-r--r--src/source.cc2
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);
}