Fixed a segfault at application exit

This commit is contained in:
Michaël Lemaire 2015-08-25 01:09:11 +02:00
parent 98f0708d3e
commit ffe5b38ad8

View file

@ -63,7 +63,7 @@ MainModelerWindow::~MainModelerWindow()
delete water;
delete cameras;
delete render_preview_provider;
//delete render_preview_provider; // don't delete it, addImageProvider took ownership
delete render_process;
delete renderer;
@ -117,7 +117,7 @@ void MainModelerWindow::loadFile()
void MainModelerWindow::exit()
{
QGuiApplication::instance()->exit();
close();
}
void MainModelerWindow::keyReleaseEvent(QKeyEvent *event)