From 3adbf17545e71e96748e7a918bfc771db6af970a Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 24 Feb 2017 13:58:40 +0800 Subject: [PATCH] [Server] Fix memory leak in CellController --- apps/openmw-mp/Cell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index 0e060b080..933852a6a 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -66,7 +66,10 @@ CellController::CellController() CellController::~CellController() { - + for(auto cell : cells) + { + delete cell; + } } CellController *CellController::sThis = nullptr;