MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ReleaseVarObjects

Function ReleaseVarObjects

source/script.cpp:1458–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1456
1457
1458void ReleaseVarObjects(VarList &aVars)
1459{
1460 for (int v = 0; v < aVars.mCount; ++v)
1461 {
1462 Var &var = *aVars.mItem[v];
1463 if (var.IsObject())
1464 var.ReleaseObject(); // ReleaseObject() vs Free() for performance (though probably not important at this point).
1465 // Otherwise, maybe best not to free it in case an object's __Delete meta-function uses it?
1466 }
1467}
1468
1469void ReleaseStaticVarObjects(FuncList &aFuncs)
1470{

Callers 2

ReleaseStaticVarObjectsFunction · 0.85
TerminateAppMethod · 0.85

Calls 2

IsObjectMethod · 0.80
ReleaseObjectMethod · 0.80

Tested by

no test coverage detected