| 715 | } |
| 716 | |
| 717 | BfMethodInstance::~BfMethodInstance() |
| 718 | { |
| 719 | Dispose(true); |
| 720 | |
| 721 | if (mHasMethodRefType) |
| 722 | { |
| 723 | auto module = GetOwner()->mModule; |
| 724 | if (!module->mContext->mDeleting) |
| 725 | { |
| 726 | auto methodRefType = module->CreateMethodRefType(this); |
| 727 | module->mContext->DeleteType(methodRefType); |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | delete mMethodInfoEx; |
| 732 | } |
| 733 | |
| 734 | void BfMethodInstance::Dispose(bool isDeleting) |
| 735 | { |
nothing calls this directly
no test coverage detected