Skip to content

Commit

Permalink
egl-wayland: Fix use after free in library teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Molytho committed Oct 15, 2024
1 parent 40e835f commit e207ce3
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 @@ -729,10 +729,10 @@ static EGLBoolean terminateDisplay(WlEglDisplay *display, EGLBoolean globalTeard
* destroy the display connection itself */
wlEglDestroyAllSurfaces(display);

wlEglDestroyFormatSet(&display->formatSet);
wlEglDestroyFeedback(&display->defaultFeedback);

if (!globalTeardown || display->ownNativeDpy) {
wlEglDestroyFormatSet(&display->formatSet);
wlEglDestroyFeedback(&display->defaultFeedback);

if (display->wlRegistry) {
wl_registry_destroy(display->wlRegistry);
display->wlRegistry = NULL;
Expand Down

0 comments on commit e207ce3

Please sign in to comment.