OSDN Git Service
(root)
/
skyscrapersim
/
skyscraper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f47feae
)
Memory leak fix for Dynamic Mesh system - the mVertexElements array needs to be delet...
author
ryan
<>
Mon, 15 Aug 2016 04:53:58 +0000
(
04:53
+0000)
committer
ryan
<>
Mon, 15 Aug 2016 04:53:58 +0000
(
04:53
+0000)
src/sbs/dynamicmesh.cpp
patch
|
blob
|
history
diff --git
a/src/sbs/dynamicmesh.cpp
b/src/sbs/dynamicmesh.cpp
index
459a6c2
..
35ce043
100644
(file)
--- a/
src/sbs/dynamicmesh.cpp
+++ b/
src/sbs/dynamicmesh.cpp
@@
-1171,7
+1171,10
@@
void DynamicMesh::Mesh::UpdateVertices(int client, const std::string &material,
count = client_entries[0].vertex_count;
if (count != vertex_count)
+ {
+ delete [] mVertexElements;
return; //make sure vertex count is the same
+ }
}
Ogre::AxisAlignedBox box;