Fix IE6 switching issues

Fixes for issues with new moniker patch.

BUG=none
TEST=covered by existing tests

Review URL: http://codereview.chromium.org/1625010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44160 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome_frame/urlmon_bind_status_callback.cc b/chrome_frame/urlmon_bind_status_callback.cc
index cb90bf2..00d465c 100644
--- a/chrome_frame/urlmon_bind_status_callback.cc
+++ b/chrome_frame/urlmon_bind_status_callback.cc
@@ -174,6 +174,9 @@
         }
       }
     }
+    DLOG(INFO) << __FUNCTION__ << "Url: " << url_ <<
+      StringPrintf("Renderer type: %s",
+                    renderer_type_ == CHROME ? "CHROME" : "OTHER");
   }
 }
 
@@ -256,7 +259,6 @@
   } else {
     hr = CallbackImpl::OnDataAvailable(flags, size, format_etc, stgmed);
   }
-
   return hr;
 }
 
@@ -264,7 +266,9 @@
   DLOG(INFO) << __FUNCTION__ << StringPrintf(" tid=%i",
       PlatformThread::CurrentId());
   HRESULT hr = MayPlayBack(BSCF_LASTDATANOTIFICATION);
-  return CallbackImpl::OnStopBinding(hresult, error);
+  hr = CallbackImpl::OnStopBinding(hresult, error);
+  ReleaseBind();
+  return hr;
 }
 
 // Play back the cached data to the delegate. Normally this would happen