From a2ccb7e796e80b5906c321963621f162b762f657 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 9 Jul 2013 20:23:40 +0200 Subject: [PATCH] The main window takes ownership of ViewPortWidget because of setCentralWidget, so no need to delete it here. --HG-- branch : gsoc2013-dfighter --- .../src/plugins/material_editor/material_editor_window.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/material_editor/material_editor_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/material_editor/material_editor_window.cpp index c9f344f5b..0021f1b37 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/material_editor/material_editor_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/material_editor/material_editor_window.cpp @@ -70,7 +70,6 @@ namespace MaterialEditor shaderWidget = NULL; delete passesWidget; passesWidget = NULL; - delete viewPort; viewPort = NULL; delete nl3dIface; nl3dIface = NULL;