title: Who owns CWinThread after it was created by AfxBeginThread?
body: <p>I am starting a thread by using <code>AfxBeginThread</code>. This returns a pointer to a new <code>CWinThread</code> object.</p>
  
  <p>MSDN states that this pointer is NULL and it will deallocate everything if thread creation fails. However as soon as the thread exits after starting regularly the <code>CWinThread</code> object still exists. I am not sure if I should delete the <code>CWinThread</code> object or if this is done by MFC itself (though it does not seem so).</p>
  
  <p>FYI it is not likely that the thread exits, since it should run until the application ends. However since I use it to be part of a thread pool, I do not want the <code>CWinThread</code> to hang aorund for ever.</p>