projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659a55b
)
MDLMoader: fix resource leak.
author
Kim Kulling
<kim.kulling@googlemail.com>
Tue, 30 Aug 2016 17:50:53 +0000
(19:50 +0200)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Tue, 30 Aug 2016 17:50:53 +0000
(19:50 +0200)
code/MDLMaterialLoader.cpp
patch
|
blob
|
history
diff --git
a/code/MDLMaterialLoader.cpp
b/code/MDLMaterialLoader.cpp
index
4c36c33
..
a84afad
100644
(file)
--- a/
code/MDLMaterialLoader.cpp
+++ b/
code/MDLMaterialLoader.cpp
@@
-731,6
+731,9
@@
void MDLImporter::ParseSkinLump_3DGS_MDL7(
}
VALIDATE_FILE_SIZE(szCurrent);
*szCurrentOut = szCurrent;
+ if ( nullptr != pcNew ) {
+ delete pcNew;
+ }
}
// ------------------------------------------------------------------------------------------------