nsObjectMapEntry
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/xpcom/io/nsFastLoadFile.h b/xpcom/io/nsFastLoadFile.h
--- a/xpcom/io/nsFastLoadFile.h
+++ b/xpcom/io/nsFastLoadFile.h
@@ -307,7 +307,8 @@ class nsFastLoadFileReader
     /**
      * In-memory representation of an indexed nsFastLoadSharpObjectInfo record.
      */
-    struct nsObjectMapEntry : public nsFastLoadSharpObjectInfo {
+    struct nsObjectMapEntry : public XPCOMGCObject
+                            , public nsFastLoadSharpObjectInfo {
         nsCOMPtr<nsISupports>   mReadObject;
         PRInt64                 mSkipOffset;
         PRUint16                mSaveStrongRefCnt;      // saved for an Update
@@ -326,7 +327,6 @@ class nsFastLoadFileReader
 
         ~nsFastLoadFooter() {
             delete[] mIDMap;
-            delete[] mObjectMap;
             if (mDocumentMap.ops)
                 PL_DHashTableFinish(&mDocumentMap);
             if (mURIMap.ops)