title: Proper way to dispose Hwnd IntPtr
body: <p>I'm trying to figure out whether the following situation produces a memory leak or not.</p>
  
  <p>I am getting a window handle from a WebBrowser control (there is a reason for this)</p>
  
  <pre><code>IntPtr p = webBrowser1.FindForm().Handle;
  </code></pre>
  
  <p>Later, I am releasing that handle in an overridden dispose method</p>
  
  <pre><code>    protected override void Dispose(bool disposing)
      {
          hwnd = IntPtr.Zero;
          base.Dispose(disposing);
      }
  </code></pre>
  
  <p>Is there something evil behind my <code>Dispose</code> method that might cause a memory leak?</p>
  
  <p>This might be pretty obvious to some, but I am hunting memory leaks so I'm trying to verify every line of code.</p>