Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -44,6 +44,13 @@ XMLHttpRequestClass::XMLHttpRequestClass(ScriptEngine* engine) : · 43 unmodified lines | |||
| 44 | 44 | ||
| 45 | XMLHttpRequestClass::~XMLHttpRequestClass() { | 45 | XMLHttpRequestClass::~XMLHttpRequestClass() { |
| 46 | if (_reply) { _reply->deleteLater(); } | 46 | if (_reply) { _reply->deleteLater(); } |
| 47 | Q_ASSERT(_engine); | ||
| 48 | { | ||
| 49 | auto guard = _engine->getScopeGuard(); | ||
| 50 | _responseData = ScriptValue(); | ||
| 51 | _onTimeout = ScriptValue(); | ||
| 52 | _onReadyStateChange = ScriptValue(); | ||
| 53 | } | ||
| 47 | } | 54 | } |
| 48 | 55 | ||
| 49 | ScriptValue XMLHttpRequestClass::constructor(ScriptContext* context, ScriptEngine* engine) { | 56 | ScriptValue XMLHttpRequestClass::constructor(ScriptContext* context, ScriptEngine* engine) { |