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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitForSingleObject(surrogate.event, INFINITE);
|
while (WaitForSingleObject(surrogate.event, 30000) != WAIT_OBJECT_0)
|
||||||
|
CoFreeUnusedLibraries();
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
Loading…
Reference in New Issue