summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2015-03-26 06:57:03 +0000
committerJosé Fonseca <jfonseca@vmware.com>2015-03-26 06:57:03 +0000
commite923984310b3e97f607d78a1a3031e6f9f5d0fd3 (patch)
tree120ed7d37d9be1706aca30c15f9f6c118c7a767c /helpers
parentc354ea0e023d414dc9abec9eb99dd1548615f914 (diff)
gltrace: Fix leak due to shadowed variable.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/glsize.hpp2
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;
}