Memleak fix. Cleanup

This commit is contained in:
vladest 2017-09-16 22:57:26 +02:00
parent a8d24d9161
commit 1cde504c74
2 changed files with 1 additions and 4 deletions

View file

@ -132,8 +132,6 @@ void WindowScriptingInterface::promptAsync(const QString& message, const QString
disconnect(dlg, &ModalDialogListener::response, this, nullptr);
emit promptTextChanged(result.toString());
});
}
CustomPromptResult WindowScriptingInterface::customPrompt(const QVariant& config) {
@ -319,8 +317,6 @@ void WindowScriptingInterface::saveAsync(const QString& title, const QString& di
}
emit saveFileChanged(result);
});
}
/// Display a select asset dialog that lets the user select an asset from the Asset Server. If `directory` is an invalid

View file

@ -94,6 +94,7 @@ QObject* OffscreenUi::getFlags() {
void OffscreenUi::removeModalDialog(QObject* modal) {
if (modal) {
_modalDialogListeners.removeOne(modal);
modal->deleteLater();
}
}