xslt-maps-gcobjects
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 67 5fcbda874b5844dafeed28ff6ad7f9cb500afea8
permissions -rw-r--r--
State as of now

diff --git a/content/xslt/src/xslt/txStylesheetCompileHandlers.cpp b/content/xslt/src/xslt/txStylesheetCompileHandlers.cpp
--- a/content/xslt/src/xslt/txStylesheetCompileHandlers.cpp
+++ b/content/xslt/src/xslt/txStylesheetCompileHandlers.cpp
@@ -3033,7 +3033,6 @@ txHandlerTable::find(PRInt32 aNamespaceI
         return PR_FALSE
 
 #define SHUTDOWN_HANDLER(_name)                                      \
-    delete gTx##_name##Handler;                                      \
     gTx##_name##Handler = nsnull
 
 // static
diff --git a/content/xslt/src/xslt/txStylesheetCompileHandlers.h b/content/xslt/src/xslt/txStylesheetCompileHandlers.h
--- a/content/xslt/src/xslt/txStylesheetCompileHandlers.h
+++ b/content/xslt/src/xslt/txStylesheetCompileHandlers.h
@@ -63,7 +63,7 @@ struct txElementHandler {
     HandleEndFn mEndFunction;
 };
 
-class txHandlerTable
+class txHandlerTable : public XPCOMGCFinalizedObject, public MMgc::GCFinalizable
 {
 public:
     txHandlerTable(const HandleTextFn aTextHandler,