Bug 445570 - parser autostring allocated on the heap, r=mrbkap
authorBenjamin Smedberg <benjamin@smedbergs.us>
Thu, 17 Jul 2008 11:23:00 -0400
changeset 16014 bc1896fdf73aafb2d656584be3f14abbdb77593a
parent 16013 0d58f04be0ddb8e77e54031ab3f2676700c2690f
child 16015 8c360ab14ee456c8e628863230bb23ca4b997a0b
push idunknown
push userunknown
push dateunknown
reviewersmrbkap
bugs445570
milestone1.9.1a1pre
Bug 445570 - parser autostring allocated on the heap, r=mrbkap
parser/htmlparser/src/nsDTDUtils.h
--- a/parser/htmlparser/src/nsDTDUtils.h
+++ b/parser/htmlparser/src/nsDTDUtils.h
@@ -438,17 +438,17 @@ public:
                     nsISupports* aWebShell,
                     const PRUint32 aFlags);
 
   nsresult   AddObserver(nsIElementObserver* aObserver,eHTMLTags aTag);
   void       RemoveObserver(nsIElementObserver* aObserver);
   PRBool     Matches(const nsAString& aTopic);
 
 protected:
-  nsAutoString mTopic; // This will rarely be empty, so make it an auto string
+  nsString mTopic;
   nsVoidArray* mObservers[NS_HTML_TAG_MAX + 1];
   friend class nsMatchesTopic;
 };
 
 /*********************************************************************************************/
 
 
 struct TagList {