Bustage fix for bug 936964's changes to memory reporting, r=bustage-fix.
authorJoshua Cranmer <Pidgeot18@gmail.com>
Fri, 29 Nov 2013 20:26:40 -0600
changeset 16941 bfec48e0479c883ec64bf32504c52b1a6d1c5847
parent 16940 a60a4c8f9a834d788230de99648a54b17db74e5a
child 16942 a61f37096e63ac3bd4786003c0a8b331f4b2c5ac
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs936964
Bustage fix for bug 936964's changes to memory reporting, r=bustage-fix.
mailnews/db/msgdb/src/nsMsgDatabase.cpp
--- a/mailnews/db/msgdb/src/nsMsgDatabase.cpp
+++ b/mailnews/db/msgdb/src/nsMsgDatabase.cpp
@@ -1137,22 +1137,22 @@ nsMsgDatabase::nsMsgDatabase()
         m_headersInUse(nullptr),
         m_cachedHeaders(nullptr),
         m_bCacheHeaders(true),
         m_cachedThreadId(nsMsgKey_None),
         m_msgReferences(nullptr),
         m_cacheSize(kMaxHdrsInCache)
 {
   mMemReporter = new mozilla::mailnews::MsgDBReporter(this);
-  NS_RegisterMemoryReporter(mMemReporter);
+  mozilla::RegisterWeakMemoryReporter(mMemReporter);
 }
 
 nsMsgDatabase::~nsMsgDatabase()
 {
-  NS_UnregisterMemoryReporter(mMemReporter);
+  mozilla::UnregisterWeakMemoryReporter(mMemReporter);
   //  Close(FALSE);  // better have already been closed.
   ClearCachedObjects(true);
   ClearEnumerators();
   delete m_cachedHeaders;
   delete m_headersInUse;
 
   if (m_msgReferences)
   {