desktop/output: fix mem leak in handle_new_output

This fixes a memory leak of oc (the output config) in handle_new_output.
Output configs returned from find_output_config are not stored and need
to be freed after use.
This commit is contained in:
Brian Ashworth 2020-01-16 19:49:52 -05:00 committed by Drew DeVault
parent c6b5aef913
commit f531e86f7c
1 changed files with 1 additions and 0 deletions

View File

@ -901,6 +901,7 @@ void handle_new_output(struct wl_listener *listener, void *data) {
} else {
wlr_output_enable(output->wlr_output, false);
}
free_output_config(oc);
transaction_commit_dirty();