From fc3972d65c81a71ebcd074e7371d7f07be03d5e2 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 6 Aug 2019 19:25:47 -0300 Subject: [PATCH] remove unecessary allocation in RunContext --- src/plugin.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugin.zig b/src/plugin.zig index 7794c9e..4612523 100644 --- a/src/plugin.zig +++ b/src/plugin.zig @@ -99,12 +99,6 @@ pub const RunContext = struct { return ImageError.InstantiateFail; } - // we allocate []f32 with size 2 to account for stereo plugins, however - // we only use &in_buf[0] and &out_buf[0], and don't use the - // (supposedly) right side of neither input or output. - var in_buf = try allocator.alloc(f32, 2); - std.mem.secureZero(f32, in_buf); - return RunContext{ .buffers = try RunBuffers.init(allocator), .instance = instance.?,