Explorar o código

Backed out changeset 852a7bdbdf4b
This causes a use-after-free memory error

Sam Lantinga %!s(int64=5) %!d(string=hai) anos
pai
achega
d9ba20442e
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      src/video/wayland/SDL_waylandvideo.c

+ 0 - 4
src/video/wayland/SDL_waylandvideo.c

@@ -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