MDLMoader: fix resource leak.

This commit is contained in:
Kim Kulling
2016-08-30 19:50:53 +02:00
parent 659a55be4a
commit 2568797015

View File

@@ -731,6 +731,9 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
}
VALIDATE_FILE_SIZE(szCurrent);
*szCurrentOut = szCurrent;
if ( nullptr != pcNew ) {
delete pcNew;
}
}
// ------------------------------------------------------------------------------------------------