From 001eef2a9f626b5931190712abb9f3caa2d0be18 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 3 Jul 2015 18:58:02 +0200 Subject: [PATCH] Coverify: fix resource leak. --- code/ObjFileParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/ObjFileParser.cpp b/code/ObjFileParser.cpp index 6d5cd6372..ebee1c4b1 100644 --- a/code/ObjFileParser.cpp +++ b/code/ObjFileParser.cpp @@ -417,6 +417,7 @@ void ObjFileParser::getFace(aiPrimitiveType type) { DefaultLogger::get()->error("Obj: Ignoring empty face"); m_DataIt = skipLine( m_DataIt, m_DataItEnd, m_uiLine ); + delete pTexID; return; }