mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00: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
|
@ -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