aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r--backend/Location.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp
index 9add524..31df1e3 100644
--- a/backend/Location.cpp
+++ b/backend/Location.cpp
@@ -2,6 +2,8 @@
#include "Location.h"
#include "ListIterator.h"
+#include "Enemy.h"
+#include "Object.h"
#include "util.h"
Location::Location(const char * name, const char * description) {
@@ -12,6 +14,8 @@ Location::Location(const char * name, const char * description) {
Location::~Location() {
safe_free(this->name);
safe_free(this->description);
+ safe_free(this->enemies);
+ safe_free(this->objects);
}
void Location::set_name(const char * name) {