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 efa15e8..d4d87fa 100644
--- a/src/source.cc
+++ b/src/source.cc
@@ -65,7 +65,7 @@ void buffer_deinit(Buffer* buffer) {
slice_deallocate(buffer->allocator, &buffer->content);
memset(buffer, 0, sizeof(*buffer));
- deallocate(buffer->allocator, (u8*)buffer);
+ deallocate(allocator, (u8*)buffer);
}
struct Buffer_Stack {