compmgr-loadertype
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 50 e3f23db3ec2213343262434cb811173f1d3d5bfc
permissions -rw-r--r--
State as of now

diff --git a/xpcom/components/nsComponentManager.cpp b/xpcom/components/nsComponentManager.cpp
--- a/xpcom/components/nsComponentManager.cpp
+++ b/xpcom/components/nsComponentManager.cpp
@@ -1161,7 +1161,7 @@ struct PersistentWriterArgs
 struct PersistentWriterArgs
 {
     PRFileDesc *mFD;
-    nsTArray<nsLoaderdata> *mLoaderData;
+    nsTArray<nsLoaderdata, GCAllocator> *mLoaderData;
 };
 
 PR_STATIC_CALLBACK(PLDHashOperator)
@@ -1196,7 +1196,7 @@ ClassIDWriter(PLDHashTable *table,
 {
     nsFactoryEntry *factoryEntry = ((nsFactoryTableEntry*)hdr)->mFactoryEntry;
     PRFileDesc* fd = ((PersistentWriterArgs*)arg)->mFD;
-    nsTArray<nsLoaderdata> *loaderData = ((PersistentWriterArgs*)arg)->mLoaderData;
+    nsTArray<nsLoaderdata, GCAllocator> *loaderData = ((PersistentWriterArgs*)arg)->mLoaderData;
 
     // for now, we only save out the top most parent.
     while (factoryEntry->mParent)
diff --git a/xpcom/components/nsComponentManager.h b/xpcom/components/nsComponentManager.h
--- a/xpcom/components/nsComponentManager.h
+++ b/xpcom/components/nsComponentManager.h
@@ -252,7 +252,7 @@ public:
     #define NS_SHUTDOWN_COMPLETE 2
     PRUint32 mShuttingDown;
 
-    nsTArray<nsLoaderdata> mLoaderData;
+    nsTArray<nsLoaderdata, GCAllocator> mLoaderData;
 
     nsDataHashtable<nsHashableHashKey, PRInt64, GCAllocator> mAutoRegEntries;