pub fn deinit(self: *LibCInstallation, allocator: Allocator) void self: *LibCInstallationallocator: Allocator241
242
243
244
245
246
247
248pub fn deinit(self: *LibCInstallation, allocator: Allocator) void {
inline for (@typeInfo(LibCInstallation).@"struct".field_names) |field_name| {
if (@field(self, field_name)) |payload| {
allocator.free(payload);
}
}
self.* = undefined;
}
Must be the same allocator passed to
parseorfindNative.