From dddfb74902dac2e0e067a5f57b771c5a5fea1160 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 31 Jul 2022 13:37:42 +0200 Subject: [PATCH] Fix another mem-leak --- code/AssetLib/Obj/ObjFileData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/AssetLib/Obj/ObjFileData.h b/code/AssetLib/Obj/ObjFileData.h index f8b68d45f..3382c28e4 100644 --- a/code/AssetLib/Obj/ObjFileData.h +++ b/code/AssetLib/Obj/ObjFileData.h @@ -254,10 +254,10 @@ struct Mesh { /// Destructor ~Mesh() { - /* for (std::vector::iterator it = m_Faces.begin(); + for (std::vector::iterator it = m_Faces.begin(); it != m_Faces.end(); ++it) { delete *it; - }*/ + } } };