mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
commands/output/toggle: Use free_output_config
This commit is contained in:
parent
26a9a6b479
commit
a4ef37752f
|
@ -29,7 +29,7 @@ struct cmd_results *output_cmd_toggle(int argc, char **argv) {
|
|||
config->handler_context.output_config->enabled = 1;
|
||||
}
|
||||
|
||||
free(oc);
|
||||
free_output_config(oc);
|
||||
config->handler_context.leftovers.argc = argc;
|
||||
config->handler_context.leftovers.argv = argv;
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue