delete (void*)mValue;
delete mValue;
nsVariant::~nsVariant(){    switch (mType) {      case nsVariantType_voidPtr:        delete (void*)mValue;        break;      case nsVariantType_charPtr:        nsCRT::free(mValue.mUnion._charPtr);        break;      case nsVariantType_PRUnicharPtr:        nsCRT::free(mValue.mUnion._PRUnicharPtr);        break;      default:        break;    }}