From 5b11196f3bafa5480a92edc5a2cc0ef24cf2a4ea Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 23 Nov 2009 19:40:48 +0000 Subject: 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 --- chrome/browser/login_prompt_gtk.cc | 6 ++++-- 1 file 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. -- cgit v1.1