| 401 | } |
| 402 | |
| 403 | void CScriptAny::FreeObject() |
| 404 | { |
| 405 | // If it is a handle or a ref counted object, call release |
| 406 | if( value.typeId & asTYPEID_MASK_OBJECT ) |
| 407 | { |
| 408 | // Let the engine release the object |
| 409 | asITypeInfo *ti = engine->GetTypeInfoById(value.typeId); |
| 410 | engine->ReleaseScriptObject(value.valueObj, ti); |
| 411 | |
| 412 | // Release the object type info |
| 413 | if( ti ) |
| 414 | ti->Release(); |
| 415 | |
| 416 | value.valueObj = 0; |
| 417 | value.typeId = 0; |
| 418 | } |
| 419 | |
| 420 | // For primitives, there's nothing to do |
| 421 | } |
| 422 | |
| 423 | |
| 424 | void CScriptAny::EnumReferences(asIScriptEngine *inEngine) |
nothing calls this directly
no test coverage detected