Function deinit [src]

Must be the same allocator passed to parse or findNative.

Prototype

pub fn deinit(self: *LibCInstallation, allocator: Allocator) void

Parameters

self: *LibCInstallationallocator: Allocator

Source

pub fn deinit(self: *LibCInstallation, allocator: Allocator) void { const fields = std.meta.fields(LibCInstallation); inline for (fields) |field| { if (@field(self, field.name)) |payload| { allocator.free(payload); } } self.* = undefined; }