mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output_defer_present: Calloc right struct
This commit is contained in:
parent
83af3202f9
commit
5ef42e8e8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue