mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +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
c6b5aef913
commit
f531e86f7c
|
@ -901,6 +901,7 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
||||||
} else {
|
} else {
|
||||||
wlr_output_enable(output->wlr_output, false);
|
wlr_output_enable(output->wlr_output, false);
|
||||||
}
|
}
|
||||||
|
free_output_config(oc);
|
||||||
|
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue