Skip to content

Commit

Permalink
commands/output/toggle: Use free_output_config
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylevinsen authored and emersion committed Mar 28, 2024
1 parent 26a9a6b commit a4ef377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/commands/output/toggle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4ef377

Please sign in to comment.