Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: chrome/browser/ui/gtk/certificate_dialogs.cc

Issue 6747007: Before object destruction, make sure that its select dialogs are told that we (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/certificate_dialogs.cc
===================================================================
--- chrome/browser/ui/gtk/certificate_dialogs.cc (revision 79409)
+++ chrome/browser/ui/gtk/certificate_dialogs.cc (working copy)
@@ -107,6 +107,11 @@
}
Exporter::~Exporter() {
+ // There may be pending file dialogs, we need to tell them that we've gone
+ // away so they don't try and call back to us.
+ if (select_file_dialog_.get())
+ select_file_dialog_->ListenerDestroyed();
+
x509_certificate_model::DestroyCertChain(&cert_chain_list_);
}

Powered by Google App Engine
This is Rietveld 408576698