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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user