output_defer_present: Calloc right struct

This commit is contained in:
Alexander Orzechowski 2023-10-02 10:11:26 -04:00
parent 83af3202f9
commit 5ef42e8e8a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}