diff options
author | Lorenzo Torres <torres@sideros.org> | 2025-03-17 19:46:22 +0100 |
---|---|---|
committer | Lorenzo Torres <torres@sideros.org> | 2025-03-17 19:46:22 +0100 |
commit | 0ea03c54bc5ec5a0783d421beb25fe5a0678b98c (patch) | |
tree | 41b886f772e887a4ddfaf40b6891e74e38b8d510 | |
parent | 3a210a6959c4238f8724cff5c57477a2f10290e5 (diff) |
fixed memory leak introduced by 48796a0fa3c06143ba3d8c427f582cb7e78814a9
-rw-r--r-- | src/rendering/vulkan.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rendering/vulkan.zig b/src/rendering/vulkan.zig index 53fda6d..8e937dc 100644 --- a/src/rendering/vulkan.zig +++ b/src/rendering/vulkan.zig @@ -106,6 +106,7 @@ pub const Instance = struct { _ = c.vkEnumerateInstanceLayerProperties(&avaliableLayersCount, availableLayers.items.ptr); // Every layer we do have we add to this list, if we don't have it no worries just print a message and continue var newLayers = std.ArrayList([*c]const u8).init(allocator); + defer newLayers.deinit(); // Loop over layers we want for (validation_layers) |want_layer| { var found = false; |