diff --git a/intl/uconv/src/nsCharsetMenu.cpp b/intl/uconv/src/nsCharsetMenu.cpp index 7f89ebcb1635..abcedce2fc5f 100644 --- a/intl/uconv/src/nsCharsetMenu.cpp +++ b/intl/uconv/src/nsCharsetMenu.cpp @@ -79,10 +79,16 @@ DEFINE_RDF_VOCAB(RDF_NAMESPACE_URI, NC, type); class nsMenuItem { public: + // memory & ref counting & leak prevention stuff + nsMenuItem() { MOZ_COUNT_CTOR(nsMenuItem); } + ~nsMenuItem() { MOZ_COUNT_DTOR(nsMenuItem); } + nsCOMPtr mCharset; nsAutoString mTitle; }; +MOZ_DECL_CTOR_COUNTER(nsMenuItem); + //---------------------------------------------------------------------------- // Class nsCharsetMenu [declaration]