Browse Source

Coverify: fix resource leak.

Kim Kulling 10 năm trước cách đây
mục cha
commit
001eef2a9f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      code/ObjFileParser.cpp

+ 1 - 0
code/ObjFileParser.cpp

@@ -417,6 +417,7 @@ void ObjFileParser::getFace(aiPrimitiveType type)
     {
         DefaultLogger::get()->error("Obj: Ignoring empty face");
         m_DataIt = skipLine<DataArrayIt>( m_DataIt, m_DataItEnd, m_uiLine );
+        delete pTexID;
         return;
     }