summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}