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

Method Free

source/script_object.cpp:1757–1768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1755}
1756
1757void Object::Variant::Free()
1758// Only the value is freed, since keys only need to be freed when a field is removed
1759// entirely or the Object is being deleted. See Object::Delete.
1760// CONTAINED VALUE WILL NOT BE VALID AFTER THIS FUNCTION RETURNS.
1761{
1762 switch (symbol)
1763 {
1764 case SYM_STRING: string.~String(); break;
1765 case SYM_OBJECT: object->Release(); break;
1766 case SYM_DYNAMIC: delete prop; break;
1767 }
1768}
1769
1770
1771

Callers 11

CallMethodFunction · 0.45
GetEnumeratorFunction · 0.45
CallEnumeratorFunction · 0.45
DeleteMethod · 0.45
ClearMethod · 0.45
InvokeMethod · 0.45
SetCapacityMethod · 0.45
DefinePropertyMethod · 0.45
ConstructMethod · 0.45
RemoveAtMethod · 0.45
GetEnumPropMethod · 0.45

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected