mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 23:47:21 +01:00
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:
parent
1bd51d9377
commit
18507e62fd
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue