title: Explicit CWinThread object deletion after Message Pump is quit?
body: <p>I have derived my own thread class from CWinThread in MFC, and creating the object using the code mentioned below.</p>
  
  <p><strong>Thread Creation:</strong></p>
  
  <pre><code>CMyOwnThread* thrd;
  void CreateThread()
  {
      thrd = new CMyOwnThread();
      thrd-&gt;CreateThread();
  }
  </code></pre>
  
  <p><strong>Thread Termination:</strong></p>
  
  <pre><code>void DestroyThread()
  {
      thrd-&gt;PostThreadMessage(WM_QUIT, 0, 0);
  
  }
  </code></pre>
  
  <p>Now, do I need to explicitly delete the pointer "thrd" also ?
  As thread would be destroyed after the message pump ceases to run.</p>