aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game_view.cpp')
-rw-r--r--engines/titanic/game_view.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/game_view.cpp b/engines/titanic/game_view.cpp
index 9bc95511ca..cb84b6a3b1 100644
--- a/engines/titanic/game_view.cpp
+++ b/engines/titanic/game_view.cpp
@@ -33,6 +33,11 @@ namespace Titanic {
CGameView::CGameView() : _gameManager(nullptr), _surface(nullptr) {
}
+CGameView::~CGameView() {
+ if (_surface)
+ delete _surface;
+}
+
void CGameView::setGameManager(CGameManager *gameManager) {
_gameManager = gameManager;
}