From afb4b6227a0f20ca829801e00dcf75eeb4c18999 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 15 Nov 2016 21:04:30 -0500 Subject: TITANIC: Fixes for freeing project and engine objects on exit --- engines/titanic/core/project_item.h | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/titanic/core') diff --git a/engines/titanic/core/project_item.h b/engines/titanic/core/project_item.h index 20c4a4377a..14ca3fd229 100644 --- a/engines/titanic/core/project_item.h +++ b/engines/titanic/core/project_item.h @@ -152,6 +152,7 @@ public: public: CLASSDEF; CProjectItem(); + virtual ~CProjectItem() { destroyChildren(); } /** * Save the data for the class to file -- cgit v1.2.3