mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
- fixed memory leaks in map editor, g3dviewer and the game
This commit is contained in:
@@ -80,6 +80,7 @@ MainWindow::MainWindow(string appPath)
|
||||
, menuBar(NULL)
|
||||
, panel(NULL)
|
||||
, glCanvas(NULL)
|
||||
, fileDialog(NULL)
|
||||
, program(NULL), boxsizer(NULL), startupSettingsInited(false) {
|
||||
|
||||
menuFile=NULL;
|
||||
@@ -468,6 +469,9 @@ void MainWindow::setupStartupSettings() {
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
delete fileDialog;
|
||||
fileDialog = NULL;
|
||||
|
||||
delete program;
|
||||
program = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user