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