diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-18 15:21:13 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-18 15:21:13 (GMT) |
| commit | 5e301ba17c0b73c52189bac329b20143213817bd (patch) | |
| tree | b5eafd7f91b85c46dcdad3665fd334296d76ccd5 /src/console/ConsoleController.cpp | |
| parent | 83ccd65b1460230f02639d1feefacb47d9ad2ad3 (diff) | |
| download | powder-5e301ba17c0b73c52189bac329b20143213817bd.zip powder-5e301ba17c0b73c52189bac329b20143213817bd.tar.gz | |
Controllers should free their callbacks and views
Diffstat (limited to 'src/console/ConsoleController.cpp')
| -rw-r--r-- | src/console/ConsoleController.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/console/ConsoleController.cpp b/src/console/ConsoleController.cpp index 7f1975d..618137d 100644 --- a/src/console/ConsoleController.cpp +++ b/src/console/ConsoleController.cpp @@ -70,6 +70,11 @@ ConsoleView * ConsoleController::GetView() } ConsoleController::~ConsoleController() { - // TODO Auto-generated destructor stub + if(ui::Engine::Ref().GetWindow() == consoleView) + ui::Engine::Ref().CloseWindow(); + if(callback) + delete callback; + delete consoleModel; + delete consoleView; } |
