Skip to content

video: Add a "VideoPreQuit" method, move Windows hotplug shutdown to it. - #16591

Merged
icculus merged 1 commit into
libsdl-org:mainfrom
icculus:sdl3-video-prequit
Oct 27, 2026
Merged

icculus merged 1 commit into
libsdl-org:mainfrom
icculus:sdl3-video-prequit

Conversation

@icculus

@icculus icculus commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator
  • I confirm that I am the author of this code and release it to the SDL project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

This prevents the thread from adding devices after the rest of the video subsystem has gone down. Now the thread is gone before that.

Fixes #16437.

This prevents the thread from adding devices after the rest of the video
subsystem has gone down. Now the thread is gone before that.

Fixes libsdl-org#16437.
@icculus icculus added this to the 3.4.20 milestone Oct 25, 2026
@icculus icculus self-assigned this Oct 25, 2026
@icculus
icculus marked this pull request as ready for review October 26, 2026 19:32
@icculus
icculus merged commit b80368f into libsdl-org:main Oct 27, 2026
10 checks passed
@icculus
icculus deleted the sdl3-video-prequit branch October 27, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: SDL_Quit() shortly after SDL_Init(SDL_INIT_VIDEO) leaks the allocations of DeviceHotplugThread

1 participant