fix memleak
parent
b43ba9c672
commit
e55d01ed15
|
@ -139,6 +139,7 @@ const ShellPopcon = struct {
|
|||
|
||||
const result = ShellSections.init(self.allocator, topShells);
|
||||
const allocator = self.allocator;
|
||||
self.deinit();
|
||||
self.* = init(allocator);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue