aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-14 08:37:44 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-14 08:37:44 -0400
commit0de5eed048202f3d05d7300223e9181c585333dd (patch)
tree28f24486ba457cf88ecb2656b76f1bea444c8669
parent94e6e6334ba20ccc45cfa7e09aa787a00c1d29a0 (diff)
Fix double free on wlr_outputs
-rw-r--r--types/wlr_output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 1f8da45f..26f7316e 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -124,8 +124,8 @@ void wlr_output_transform(struct wlr_output *output,
bool wlr_output_set_cursor(struct wlr_output *output,
const uint8_t *buf, int32_t stride, uint32_t width, uint32_t height) {
- if (output->impl->set_cursor && output->impl->set_cursor(output, buf,
- stride, width, height)) {
+ if (output->impl->set_cursor
+ && output->impl->set_cursor(output, buf, stride, width, height)) {
output->cursor.is_sw = false;
return true;
}
@@ -179,7 +179,6 @@ void wlr_output_destroy(struct wlr_output *output) {
free(mode);
}
list_free(output->modes);
- free(output);
}
void wlr_output_effective_resolution(struct wlr_output *output,