summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2020-01-16 19:49:52 -0500
committerDrew DeVault <sir@cmpwn.com>2020-01-22 13:30:52 -0500
commitf531e86f7c56183c8c4f9da4b209c7ab207a0f7d (patch)
tree753cc0414e8cb62797e6510bf2e6dc92e96b9ae8
parentc6b5aef913cf55823d58cf1de2a4e658f37cefdf (diff)
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.
-rw-r--r--sway/desktop/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index b1767efc4..afe43d2ce 100644
--- 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();