mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed double deletion issue with mParamNameMap
This commit is contained in:
parent
993053271b
commit
6cfd027362
1 changed files with 3 additions and 1 deletions
|
@ -3181,9 +3181,10 @@ void BfSystem::AddToCompositePartial(BfPassInstance* passInstance, BfTypeDef* co
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newMethod = new BfMethodDef();
|
newMethod = new BfMethodDef();
|
||||||
*newMethod = *method;
|
*newMethod = *method;
|
||||||
}
|
}
|
||||||
|
method->mParamNameMap = NULL;
|
||||||
newMethod->mIdx = (int)typeDef->mMethods.size();
|
newMethod->mIdx = (int)typeDef->mMethods.size();
|
||||||
for (int paramIdx = 0; paramIdx < (int)newMethod->mParams.size(); paramIdx++)
|
for (int paramIdx = 0; paramIdx < (int)newMethod->mParams.size(); paramIdx++)
|
||||||
{
|
{
|
||||||
|
@ -3408,6 +3409,7 @@ void BfSystem::CopyTypeDef(BfTypeDef* typeDef, BfTypeDef* fromTypeDef)
|
||||||
methodDef = new BfMethodDef();
|
methodDef = new BfMethodDef();
|
||||||
*methodDef = *fromMethodDef;
|
*methodDef = *fromMethodDef;
|
||||||
}
|
}
|
||||||
|
fromMethodDef->mParamNameMap = NULL;
|
||||||
|
|
||||||
if (methodDef->mDeclaringType == fromTypeDef)
|
if (methodDef->mDeclaringType == fromTypeDef)
|
||||||
methodDef->mDeclaringType = typeDef;
|
methodDef->mDeclaringType = typeDef;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue