mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 22:55:43 +00:00
dllhost: Periodically call CoFreeUnusedLibraries().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4d011e16f6
commit
eaf7261944
|
@ -352,7 +352,8 @@ int WINAPI wWinMain(HINSTANCE hinst, HINSTANCE previnst, LPWSTR cmdline, int sho
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
WaitForSingleObject(surrogate.event, INFINITE);
|
||||
while (WaitForSingleObject(surrogate.event, 30000) != WAIT_OBJECT_0)
|
||||
CoFreeUnusedLibraries();
|
||||
}
|
||||
|
||||
cleanup:
|
||||
|
|
Loading…
Reference in a new issue