projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b9d7f
)
Fix program leak in sglrGLContext CreateProgram on build failure.
author
Jarkko Pöyry
<jpoyry@google.com>
Mon, 8 Dec 2014 22:07:33 +0000
(14:07 -0800)
committer
Jarkko Pöyry
<jpoyry@google.com>
Mon, 8 Dec 2014 22:08:23 +0000
(14:08 -0800)
Bug:
18671009
Change-Id: Iae17830bec4e213853d7079f42c01c7b2bf48821
framework/opengl/simplereference/sglrGLContext.cpp
patch
|
blob
|
history
diff --git
a/framework/opengl/simplereference/sglrGLContext.cpp
b/framework/opengl/simplereference/sglrGLContext.cpp
index ffb1857089b78a2c478e53eb45d00581be890601..6e651133bf0585e5a963b94f8338471118d85c3d 100644
(file)
--- a/
framework/opengl/simplereference/sglrGLContext.cpp
+++ b/
framework/opengl/simplereference/sglrGLContext.cpp
@@
-864,6
+864,7
@@
deUint32 GLContext::createProgram (ShaderProgram* shader)
if (!program->isOk())
{
m_log << *program;
+ delete program;
TCU_FAIL("Compile failed");
}