Release the IXMLDOMDocument* Object

An Applications snap-in extension must release the IXMLDOMDocument* object when the property sheet is closed.

Code Example

The full code example, which includes the code used to perform this operation, is available in the AppExt.cpp file. The following is a sample of this code. It requires no modification.

      case WM_DESTROY:
      {
         // Free the DOM:
         pThis->m_pXmlDom->Release();
         
         pThis->m_pXmlDom = NULL;  
         
         break;
      }