| 153 | } |
| 154 | |
| 155 | ScriptInstance::~ScriptInstance() |
| 156 | { |
| 157 | ScriptObject::ActiveInstance active(*this); |
| 158 | this->in_shutdown = true; |
| 159 | |
| 160 | if (instance != nullptr) this->engine->ReleaseObject(this->instance.get()); |
| 161 | |
| 162 | /* Engine must be reset explicitly in scope of the active instance. */ |
| 163 | this->engine.reset(); |
| 164 | } |
| 165 | |
| 166 | void ScriptInstance::Continue() |
| 167 | { |
nothing calls this directly
no test coverage detected