| 631 | } |
| 632 | |
| 633 | CScriptDictValue::~CScriptDictValue() |
| 634 | { |
| 635 | if (m_valueObj && m_typeId) |
| 636 | { |
| 637 | asIScriptContext *ctx = asGetActiveContext(); |
| 638 | if (ctx) |
| 639 | FreeValue(ctx->GetEngine()); |
| 640 | else |
| 641 | { |
| 642 | // Must not hold an object when destroyed, as then the object will never be freed |
| 643 | assert((m_typeId & asTYPEID_MASK_OBJECT) == 0); |
| 644 | } |
| 645 | } |
| 646 | } |
| 647 | |
| 648 | void CScriptDictValue::FreeValue(asIScriptEngine *engine) |
| 649 | { |
no test coverage detected