diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2020-01-16 19:49:52 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-16 18:14:49 -0700 |
commit | 18507e62fd9445090ecbe3cdfffb4a10d7ea90ea (patch) | |
tree | 1c44b34cf9c9e1f92d8e6d37fa8efd74892a66c7 /sway | |
parent | 1bd51d9377489264a296ca3ba46b621ace5e7be9 (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.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index b1767efc..afe43d2c 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(); |