sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 18507e62fd9445090ecbe3cdfffb4a10d7ea90ea
parent 1bd51d9377489264a296ca3ba46b621ace5e7be9
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Thu, 16 Jan 2020 19:49:52 -0500

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.

Diffstat:
Msway/desktop/output.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -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();