Release registry pointer in examples/idle

This commit is contained in:
random human 2018-09-03 03:27:56 +05:30
parent ef5df78a27
commit de16defb21
No known key found for this signature in database
GPG Key ID: 73E5A60444CC77A3
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ int main(int argc, char *argv[]) {
wl_registry_add_listener(registry, &registry_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");