fixed mismatched free in nsProperties

This commit is contained in:
warren%netscape.com 1999-09-20 20:54:16 +00:00
parent 9b98c7e8a1
commit bdef2ae2c9

View File

@ -186,8 +186,8 @@ nsPersistentProperties::nsPersistentProperties()
PR_STATIC_CALLBACK(PRIntn)
FreeHashEntries(PLHashEntry* he, PRIntn i, void* arg)
{
delete[] (PRUnichar*)he->key;
delete[] (PRUnichar*)he->value;
nsCRT::free((PRUnichar*)he->key);
nsCRT::free((PRUnichar*)he->value);
return HT_ENUMERATE_REMOVE;
}