aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/puzzle.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/zvision/puzzle.h b/engines/zvision/puzzle.h
index 227183ab02..371af83d91 100644
--- a/engines/zvision/puzzle.h
+++ b/engines/zvision/puzzle.h
@@ -27,11 +27,17 @@
#include "common/list.h"
#include "common/ptr.h"
-namespace ZVision {
+#include "zvision/actions.h"
-class ResultAction;
+namespace ZVision {
struct Puzzle {
+ ~Puzzle() {
+ for (Common::List<ResultAction *>::iterator iter = resultActions.begin(); iter != resultActions.end(); iter++) {
+ delete (*iter);
+ }
+ }
+
/** How criteria should be decided */
enum CriteriaOperator {
EQUAL_TO,