config: fix leak of default layout namespace
This commit is contained in:
parent
7013bc3b69
commit
e752555969
1 changed files with 3 additions and 0 deletions
|
@ -48,7 +48,10 @@ pub fn defaultLayout(
|
|||
if (args.len < 2) return Error.NotEnoughArguments;
|
||||
if (args.len > 2) return Error.TooManyArguments;
|
||||
|
||||
const old_default_layout_namespace = server.config.default_layout_namespace;
|
||||
server.config.default_layout_namespace = try util.gpa.dupe(u8, args[1]);
|
||||
util.gpa.free(old_default_layout_namespace);
|
||||
|
||||
var it = server.root.all_outputs.first;
|
||||
while (it) |node| : (it = node.next) {
|
||||
const output = node.data;
|
||||
|
|
Loading…
Reference in a new issue