1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

EmitObjectAccessCheck for append field dtor to detect double delete

This commit is contained in:
Brian Fiete 2025-02-16 12:33:04 -08:00
parent de7ec27032
commit f6d18c111f

View file

@ -18011,6 +18011,8 @@ void BfModule::EmitDtorBody()
PopulateType(val.mType);
PopulateType(objectType, BfPopulateType_DataAndMethods);
EmitObjectAccessCheck(val);
if (objectType->mVirtualMethodTable.size() == 0)
{
if (!mCompiler->IsAutocomplete())