diff options
-rw-r--r-- | src/depot.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/depot.cpp b/src/depot.cpp index 05e2af3d4..9207c6362 100644 --- a/src/depot.cpp +++ b/src/depot.cpp @@ -27,6 +27,8 @@ INSTANTIATE_POOL_METHODS(Depot) */ Depot::~Depot() { + free(this->name); + if (CleaningPool()) return; if (!IsDepotTile(this->xy) || GetDepotIndex(this->xy) != this->index) { |