Skip to content

Commit

Permalink
Fix wrong destruction order for event queue
Browse files Browse the repository at this point in the history
  • Loading branch information
q234rty authored and erik-kz committed Apr 19, 2023
1 parent 30c5a95 commit 13737c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wayland-egldisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,12 @@ static void getServerProtocolsInfo(struct wl_display *nativeDpy,
}
}

if (wlRegistry) {
wl_registry_destroy(wlRegistry);
}
if (queue) {
wl_event_queue_destroy(queue);
}
if (wlRegistry) {
wl_registry_destroy(wlRegistry);
}
}

EGLDisplay wlEglGetPlatformDisplayExport(void *data,
Expand Down

0 comments on commit 13737c6

Please sign in to comment.