xul-gcobjects
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 162 3ae1ca70680d55840cbf5a60088ebaebfe2bddc5
permissions -rw-r--r--
State as of now

diff --git a/content/xul/content/src/nsXULElement.h b/content/xul/content/src/nsXULElement.h
--- a/content/xul/content/src/nsXULElement.h
+++ b/content/xul/content/src/nsXULElement.h
@@ -628,6 +628,10 @@ protected:
        nsXULSlots(PtrBits aFlags);
        virtual ~nsXULSlots();
 
+       static void* operator new(size_t size) NS_GCFINALIZEDALLOCATOR {
+           return XPCOMGCFinalizedObject::operator new(size);
+       }
+
        nsCOMPtr<nsIFrameLoader> mFrameLoader;
     };
 
diff --git a/content/xul/document/src/nsXULContentSink.h b/content/xul/document/src/nsXULContentSink.h
--- a/content/xul/document/src/nsXULContentSink.h
+++ b/content/xul/document/src/nsXULContentSink.h
@@ -143,7 +143,7 @@ protected:
     class ContextStack {
     protected:
         struct Entry {
-            nsXULPrototypeNode* mNode;
+            nsXULPrototypeNode* mNode NS_UNMANAGED;
             // a LOT of nodes have children; preallocate for 8
             nsAutoVoidArray     mChildren;
             State               mState;
diff --git a/content/xul/document/src/nsXULDocument.h b/content/xul/document/src/nsXULDocument.h
--- a/content/xul/document/src/nsXULDocument.h
+++ b/content/xul/document/src/nsXULDocument.h
@@ -329,8 +329,8 @@ protected:
     class ContextStack {
     protected:
         struct Entry {
-            nsXULPrototypeElement* mPrototype;
-            nsIContent*            mElement;
+            nsXULPrototypeElement* mPrototype NS_UNMANAGED;
+            nsIContent*            mElement NS_UNMANAGED;
             PRInt32                mIndex;
             Entry*                 mNext;
         };