From 80ed1262bd654fe2de30389f97a985b5f2c1d783 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 30 Oct 2024 21:51:06 +0100 Subject: add more containers and fix use after free --- backend/Location.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'backend/Location.cpp') diff --git a/backend/Location.cpp b/backend/Location.cpp index 7246246..bfd2107 100644 --- a/backend/Location.cpp +++ b/backend/Location.cpp @@ -20,12 +20,6 @@ Direction random_direction(const Location & location) { Location::Location(const String & name, const String & description) : name(name), description(description) { } -Location::~Location() { - safe_free(this->enemies); - safe_free(this->hidden_objects); - safe_free(this->visible_objects); -} - void Location::set_name(const String & name) { this->name = name; } const String & Location::get_name() const { return this->name; } -- cgit v1.2.3