From cbcd6a26d568d6a4b161fc2f849cba701bc4bef1 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 1 Dec 2014 22:57:32 +0100 Subject: [PATCH] memory leak fix --- apps/opencs/model/world/data.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/opencs/model/world/data.cpp b/apps/opencs/model/world/data.cpp index 737376f04..f6bd8e13b 100644 --- a/apps/opencs/model/world/data.cpp +++ b/apps/opencs/model/world/data.cpp @@ -686,6 +686,8 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages) boost::shared_ptr ptr(mReader); mReaders.push_back(ptr); } + else + delete mReader; mReader = 0;