mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Make XML HTTP requests script owned
This was causing them to leak every time
This commit is contained in:
parent
0728df8a8f
commit
0b72e4dc60
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ XMLHttpRequestClass::~XMLHttpRequestClass() {
|
|||
}
|
||||
|
||||
QScriptValue XMLHttpRequestClass::constructor(QScriptContext* context, QScriptEngine* engine) {
|
||||
return engine->newQObject(new XMLHttpRequestClass(engine));
|
||||
return engine->newQObject(new XMLHttpRequestClass(engine), QScriptEngine::ScriptOwnership);
|
||||
}
|
||||
|
||||
QScriptValue XMLHttpRequestClass::getStatus() const {
|
||||
|
|
Loading…
Reference in a new issue