Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg.

git-svn-id: svn://10.0.0.236/trunk@226538 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bent.mozilla%gmail.com
2007-05-16 20:10:18 +00:00
parent 09b858778e
commit e9f948b44b
2 changed files with 8 additions and 2 deletions

View File

@@ -53,6 +53,7 @@
nsTAString_CharT::~nsTAString_CharT()
{
NS_ASSERTION(mVTable, "mVTable is null! Is this a static string instance?!");
if (mVTable == obsolete_string_type::sCanonicalVTable)
AsSubstring()->Finalize();
else