diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-10-02 10:11:26 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-10-02 10:11:26 -0400 |
commit | 5ef42e8e8adece098848fac53c721b6eb3818fc2 (patch) | |
tree | ccc7a38f9ce7879091ad9318e2fe3840f135bc84 | |
parent | 83af3202f94fa49822039f051070be1491854c24 (diff) |
output_defer_present: Calloc right struct
-rw-r--r-- | types/output/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/output/output.c b/types/output/output.c index a9a0ccb2..57b4c87e 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -952,7 +952,7 @@ static void deferred_present_event_handle_output_destroy(struct wl_listener *lis } void output_defer_present(struct wlr_output *output, struct wlr_output_event_present event) { - struct deferred_present_event *deferred = calloc(1, sizeof(struct wlr_output_event_present)); + struct deferred_present_event *deferred = calloc(1, sizeof(*deferred)); if (!deferred) { return; } |