https://bugs.winehq.org/show_bug.cgi?id=46180
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- (In reply to Ralf Habacker from comment #0)
According to (https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser- registerclassa), Windows unregisters window classes registered by a process at process termination, which is not implemented in wine and leads to resource leaks.
It's implemented in destroy_process_classes().