mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Free messages from logger in deinit
This commit is contained in:
@@ -864,6 +864,10 @@ pub const Log = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(log: *Log) void {
|
||||
for (log.msgs.items) |*msg| {
|
||||
msg.deinit(log.msgs.allocator);
|
||||
}
|
||||
|
||||
log.msgs.clearAndFree();
|
||||
// log.warnings = 0;
|
||||
// log.errors = 0;
|
||||
|
||||
Reference in New Issue
Block a user