mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Release registry pointer in examples/idle
This commit is contained in:
parent
ef5df78a27
commit
de16defb21
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ int main(int argc, char *argv[]) {
|
|||
wl_registry_add_listener(registry, ®istry_listener, NULL);
|
||||
wl_display_dispatch(display);
|
||||
wl_display_roundtrip(display);
|
||||
free(registry);
|
||||
|
||||
if (idle_manager == NULL) {
|
||||
fprintf(stderr, "display doesn't support idle protocol\n");
|
||||
|
|
Loading…
Reference in a new issue