Skip to content

Commit

Permalink
Backed out changeset 852a7bdbdf4b
Browse files Browse the repository at this point in the history
This causes a use-after-free memory error
  • Loading branch information
slouken committed Feb 10, 2021
1 parent 4183211 commit d9ba204
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/video/wayland/SDL_waylandvideo.c
Expand Up @@ -297,10 +297,6 @@ display_handle_done(void *data,

SDL_AddVideoDisplay(display, SDL_FALSE);
SDL_free(display->name);
/* The 'display' content was copied in previous SDL_AddVideoDisplay call.
* We have to remove this reference, else it will be lost indefinitely.
*/
SDL_free(display);
}

static void
Expand Down

0 comments on commit d9ba204

Please sign in to comment.