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

diff --git a/xpcom/glue/nsTObserverArray.h b/xpcom/glue/nsTObserverArray.h
--- a/xpcom/glue/nsTObserverArray.h
+++ b/xpcom/glue/nsTObserverArray.h
@@ -41,7 +41,7 @@
 
 #include "nsTArray.h"
 
-class NS_COM_GLUE nsTObserverArray_base {
+class NS_COM_GLUE NS_FINALIZER_NOT_REQUIRED nsTObserverArray_base {
   public:
     typedef PRUint32 index_type;
     typedef PRUint32 size_type;
@@ -345,7 +345,7 @@ class nsAutoTObserverArray : protected n
     };
 
   protected:
-    nsAutoTArray<T, N> mArray;
+    nsAutoTArray<T, N, GCAllocator> mArray;
 };
 
 template<class T>