Step 4: Close the COM Library

[This is preliminary documentation and subject to change.]

When your application no longer needs COM services, use the CoUninitialize OLE function to close the COM library. Closing the COM library is required by COM standards; failing to do so will result in memory leaks. Babble calls CoUninitialize when it closes the text to speech engine in its UnInitTTS application-defined function.