diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-03-26 06:57:03 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-03-26 06:57:03 +0000 |
commit | e923984310b3e97f607d78a1a3031e6f9f5d0fd3 (patch) | |
tree | 120ed7d37d9be1706aca30c15f9f6c118c7a767c /helpers | |
parent | c354ea0e023d414dc9abec9eb99dd1548615f914 (diff) |
gltrace: Fix leak due to shadowed variable.
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/glsize.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index c227f692..0b36cc8e 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -394,7 +394,7 @@ _glDrawElementsBaseVertex_count(GLsizei count, GLenum type, const GLvoid *indice // Read indices from index buffer object GLintptr offset = (GLintptr)indices; GLsizeiptr size = count*_gl_type_size(type); - GLvoid *temp = malloc(size); + temp = malloc(size); if (!temp) { return 0; } |