History

Delete reply after the callback is executed

Clement committed 7 years ago

Commit 90aeb631 parent 6f760981 file · +3 −3Browse files

Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/XMLHttpRequestClass.cpp+3−3
@@ -218,12 +218,12 @@ void XMLHttpRequestClass::requestFinished() { · 217 unmodified lines
218 }218 }
219 }219 }
220 220
221 setReadyState(DONE);
222 emit requestComplete();
223
221 disconnectFromReply(_reply);224 disconnectFromReply(_reply);
222 _reply->deleteLater();225 _reply->deleteLater();
223 _reply = nullptr;226 _reply = nullptr;
224
225 setReadyState(DONE);
226 emit requestComplete();
227}227}
228 228
229void XMLHttpRequestClass::abortRequest() {229void XMLHttpRequestClass::abortRequest() {