output_defer_present: Calloc right struct

master
Alexander Orzechowski 1 year ago
parent 83af3202f9
commit 5ef42e8e8a

@ -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) { 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) { if (!deferred) {
return; return;
} }

Loading…
Cancel
Save