PVS: V773 A memory leak is possible

This commit is contained in:
wmayer
2019-02-17 18:40:06 +01:00
parent b2a5f47e44
commit e23db2e313
22 changed files with 74 additions and 69 deletions

View File

@@ -260,6 +260,7 @@ QWidget* setupMainWindow()
Base::PyGILStateLocker lock;
PyObject* input = PySys_GetObject("stdin");
Gui::MainWindow *mw = new Gui::MainWindow();
mw->setAttribute(Qt::WA_DeleteOnClose);
hasMainWindow = true;
QIcon icon = qApp->windowIcon();