mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
CeFunctionInfo ref counting fix
This commit is contained in:
parent
ae2c12d974
commit
db6cfcf211
1 changed files with 3 additions and 1 deletions
|
@ -6455,6 +6455,8 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
if (moduleMethodInstance)
|
||||
{
|
||||
auto ceFunction = mCeMachine->QueueMethod(moduleMethodInstance.mMethodInstance, moduleMethodInstance.mFunc);
|
||||
ceFunction->mCeFunctionInfo->mRefCount++;
|
||||
mCeMachine->DerefMethodInfo(callEntry.mFunctionInfo);
|
||||
callEntry.mFunctionInfo = ceFunction->mCeFunctionInfo;
|
||||
}
|
||||
}
|
||||
|
@ -8209,7 +8211,7 @@ BfMethodInstance* CeMachine::GetMethodInstance(int64 methodHandle)
|
|||
}
|
||||
|
||||
CeFunction* CeMachine::QueueMethod(BfMethodInstance* methodInstance, BfIRValue func)
|
||||
{
|
||||
{
|
||||
if (mPreparingFunction != NULL)
|
||||
{
|
||||
auto curOwner = mPreparingFunction->mMethodInstance->GetOwner();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue