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:
0c1b535
)
Coverity findings: fix resource leak in PlyLoader.cpp.
author
Kim Kulling
<kim.kulling@googlemail.com>
Wed, 30 Dec 2015 14:38:30 +0000
(15:38 +0100)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Wed, 30 Dec 2015 14:38:30 +0000
(15:38 +0100)
code/PlyLoader.cpp
patch
|
blob
|
history
diff --git
a/code/PlyLoader.cpp
b/code/PlyLoader.cpp
index
f86ddce
..
eaa9192
100644
(file)
--- a/
code/PlyLoader.cpp
+++ b/
code/PlyLoader.cpp
@@
-312,6
+312,7
@@
void PLYImporter::ConvertMeshes(std::vector<PLY::Face>* avFaces,
p_pcOut->mNumVertices = iNum;
if( 0 == iNum ) { // nothing to do
delete[] aiSplit; // cleanup
+ delete p_pcOut;
return;
}
p_pcOut->mVertices = new aiVector3D[iNum];