The main window takes ownership of ViewPortWidget because of setCentralWidget, so no need to delete it here.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 12 years ago
parent 6d31a50f5d
commit a2ccb7e796

@ -70,7 +70,6 @@ namespace MaterialEditor
shaderWidget = NULL; shaderWidget = NULL;
delete passesWidget; delete passesWidget;
passesWidget = NULL; passesWidget = NULL;
delete viewPort;
viewPort = NULL; viewPort = NULL;
delete nl3dIface; delete nl3dIface;
nl3dIface = NULL; nl3dIface = NULL;

Loading…
Cancel
Save