diff options
-rw-r--r-- | chrome/browser/login_prompt_gtk.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/login_prompt_gtk.cc b/chrome/browser/login_prompt_gtk.cc index b5045ad..42f705c 100644 --- a/chrome/browser/login_prompt_gtk.cc +++ b/chrome/browser/login_prompt_gtk.cc @@ -182,8 +182,8 @@ class LoginHandlerGtk : public LoginHandler, ChromeThread::UI, FROM_HERE, NewRunnableMethod(this, &LoginHandlerGtk::CloseContentsDeferred)); ChromeThread::PostTask( - ChromeThread::UI, FROM_HERE, - NewRunnableMethod(this, &LoginHandlerGtk::SendNotifications)); + ChromeThread::UI, FROM_HERE, + NewRunnableMethod(this, &LoginHandlerGtk::SendNotifications)); ChromeThread::PostTask( ChromeThread::IO, FROM_HERE, NewRunnableMethod(this, &LoginHandlerGtk::CancelAuthDeferred)); @@ -215,6 +215,8 @@ class LoginHandlerGtk : public LoginHandler, NewRunnableMethod(this, &LoginHandlerGtk::SendNotifications)); } + // The constrained window is going to delete itself; clear our pointer. + dialog_ = NULL; SetModel(NULL); // Delete this object once all InvokeLaters have been called. |