mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01: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) {
|
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…
Reference in a new issue