summaryrefslogtreecommitdiffstats
path: root/chrome/browser/login_prompt_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:40:48 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:40:48 +0000
commit5b11196f3bafa5480a92edc5a2cc0ef24cf2a4ea (patch)
tree94b83765166ea0985d8bf07dc9ce60a2355fb0d9 /chrome/browser/login_prompt_gtk.cc
parentaae6b05e6c70162bdec707fc97bfb916a90cf669 (diff)
downloadchromium_src-5b11196f3bafa5480a92edc5a2cc0ef24cf2a4ea.zip
chromium_src-5b11196f3bafa5480a92edc5a2cc0ef24cf2a4ea.tar.gz
chromium_src-5b11196f3bafa5480a92edc5a2cc0ef24cf2a4ea.tar.bz2
GTK: don't dereference stale ConstrainedWindow pointer.
BUG=28587 Review URL: http://codereview.chromium.org/436004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/login_prompt_gtk.cc')
-rw-r--r--chrome/browser/login_prompt_gtk.cc6
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.