MDLMoader: fix resource leak.

pull/996/head
Kim Kulling 2016-08-30 19:50:53 +02:00
parent 659a55be4a
commit 2568797015
1 changed files with 3 additions and 0 deletions

View File

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