Fixed a crash

This commit is contained in:
WolverinDEV
2021-01-04 19:45:48 +01:00
parent 3c0c48c00c
commit a233915064
3 changed files with 12 additions and 7 deletions
+1
View File
@@ -19,6 +19,7 @@ Buffer* transfer::allocate_buffer(size_t size) {
auto buffer = (Buffer*) malloc(total_size);
new (buffer) Buffer{};
buffer->capacity = size;
buffer->ref_count = 1;
return buffer;
}