Bug 988453 - Make nsHyphenationManager::Shutdown() resilient against being called more than once. r=roc a=sledru
authorMats Palmgren <matspal@gmail.com>
Wed, 02 Apr 2014 00:09:26 +0000
changeset 192506 737147956ed71f56c7cf21711f7b87bb447c6875
parent 192505 a91e6c35159c162dbe090840582bf8c0aca95bee
child 192507 86f2c4131527796b9c03a2a52e13b2b770079d78
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, sledru
bugs988453
milestone30.0a2
Bug 988453 - Make nsHyphenationManager::Shutdown() resilient against being called more than once. r=roc a=sledru
intl/hyphenation/src/nsHyphenationManager.cpp
--- a/intl/hyphenation/src/nsHyphenationManager.cpp
+++ b/intl/hyphenation/src/nsHyphenationManager.cpp
@@ -61,16 +61,17 @@ nsHyphenationManager::Instance()
   }
   return sInstance;
 }
 
 void
 nsHyphenationManager::Shutdown()
 {
   delete sInstance;
+  sInstance = nullptr;
 }
 
 nsHyphenationManager::nsHyphenationManager()
 {
   LoadPatternList();
   LoadAliases();
 }