aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-19 15:27:50 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-19 15:27:50 +0000
commit50e4ce05521b0d95890e894691819882113aae86 (patch)
tree39e3902ea1191b1e2d7a56f8a02b78651c03b488 /src/gpu
parent2999f789c7e66a31066414f4b8fffb3148b677c5 (diff)
Fix memory leaks.
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/GrGpuGL_program.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp
index 97f9b6d817..f8d71ffbf4 100644
--- a/src/gpu/gl/GrGpuGL_program.cpp
+++ b/src/gpu/gl/GrGpuGL_program.cpp
@@ -86,7 +86,10 @@ void GrGpuGL::DeleteProgram(const GrGLInterface* gl,
}
GR_GL_CALL(gl, DeleteShader(programData->fFShaderID));
GR_GL_CALL(gl, DeleteProgram(programData->fProgramID));
- GR_DEBUGCODE(memset(programData, 0, sizeof(*programData));)
+ GR_DEBUGCODE(programData->fVShaderID = 0);
+ GR_DEBUGCODE(programData->fGShaderID = 0);
+ GR_DEBUGCODE(programData->fFShaderID = 0);
+ GR_DEBUGCODE(programData->fProgramID = 0);
}
////////////////////////////////////////////////////////////////////////////////