Commit eaf72619 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

dllhost: Periodically call CoFreeUnusedLibraries().

parent 4d011e16
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment