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/desktop | |
parent | sway.5: Document missing bindsym flags for unbindsym (diff) | |
download | sway-18507e62fd9445090ecbe3cdfffb4a10d7ea90ea.tar.gz sway-18507e62fd9445090ecbe3cdfffb4a10d7ea90ea.tar.zst sway-18507e62fd9445090ecbe3cdfffb4a10d7ea90ea.zip |
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/desktop')
-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) { | |||
901 | } else { | 901 | } else { |
902 | wlr_output_enable(output->wlr_output, false); | 902 | wlr_output_enable(output->wlr_output, false); |
903 | } | 903 | } |
904 | free_output_config(oc); | ||
904 | 905 | ||
905 | transaction_commit_dirty(); | 906 | transaction_commit_dirty(); |
906 | 907 | ||