Make sure to free stuff
This commit is contained in:
parent
684f2717d9
commit
1d8259b88b
1 changed files with 7 additions and 0 deletions
|
|
@ -58,6 +58,13 @@ const Globals = struct {
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (self.additionalScopes.items) |modifier| {
|
||||||
|
if (modifier.rename) |value| {
|
||||||
|
self.allocator.free(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
self.allocator.free(modifier.scope);
|
||||||
|
}
|
||||||
self.additionalScopes.deinit();
|
self.additionalScopes.deinit();
|
||||||
|
|
||||||
self.* = undefined;
|
self.* = undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue