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

diff --git a/parser/htmlparser/src/CParserContext.h b/parser/htmlparser/src/CParserContext.h
--- a/parser/htmlparser/src/CParserContext.h
+++ b/parser/htmlparser/src/CParserContext.h
@@ -88,7 +88,7 @@ public:
     void*                mKey;
     nsCOMPtr<nsITokenizer> mTokenizer;
     CParserContext*      mPrevContext;
-    nsAutoPtr<nsScanner> mScanner;
+    nsCOMPtr<nsScanner>  mScanner;
     
     nsCString            mMimeType;
     nsDTDMode            mDTDMode;
diff --git a/parser/htmlparser/src/nsScanner.h b/parser/htmlparser/src/nsScanner.h
--- a/parser/htmlparser/src/nsScanner.h
+++ b/parser/htmlparser/src/nsScanner.h
@@ -70,7 +70,10 @@ private:
   void operator=(const nsReadEndCondition& aOther); // No assigning
 };
 
-class nsScanner {
+class nsScanner
+  : public XPCOMGCFinalizedObject
+  , public MMgc::GCFinalizable
+{
   public:
 
       /**