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

Unified Diff: chrome/browser/extensions/extension_system.cc

Issue 10064003: Fix NULL pointer access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_system.cc
diff --git a/chrome/browser/extensions/extension_system.cc b/chrome/browser/extensions/extension_system.cc
index 557e9bb8bb2dc275b7f87754cc43cf71ac18c6bf..379ffc6be445a8885cd2ee61bdaadc1d2acf7f00 100644
--- a/chrome/browser/extensions/extension_system.cc
+++ b/chrome/browser/extensions/extension_system.cc
@@ -63,7 +63,8 @@ ExtensionSystemImpl::Shared::Shared(Profile* profile)
}
ExtensionSystemImpl::Shared::~Shared() {
- rules_registry_service_->Shutdown();
+ if (rules_registry_service_.get())
+ rules_registry_service_->Shutdown();
}
void ExtensionSystemImpl::Shared::InitPrefs() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698