Fixed a segfault at application exit
This commit is contained in:
parent
98f0708d3e
commit
ffe5b38ad8
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ MainModelerWindow::~MainModelerWindow()
|
||||||
delete water;
|
delete water;
|
||||||
delete cameras;
|
delete cameras;
|
||||||
|
|
||||||
delete render_preview_provider;
|
//delete render_preview_provider; // don't delete it, addImageProvider took ownership
|
||||||
delete render_process;
|
delete render_process;
|
||||||
|
|
||||||
delete renderer;
|
delete renderer;
|
||||||
|
@ -117,7 +117,7 @@ void MainModelerWindow::loadFile()
|
||||||
|
|
||||||
void MainModelerWindow::exit()
|
void MainModelerWindow::exit()
|
||||||
{
|
{
|
||||||
QGuiApplication::instance()->exit();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainModelerWindow::keyReleaseEvent(QKeyEvent *event)
|
void MainModelerWindow::keyReleaseEvent(QKeyEvent *event)
|
||||||
|
|
Loading…
Reference in a new issue