Fix program leak in sglrGLContext CreateProgram on build failure.
authorJarkko Pöyry <jpoyry@google.com>
Mon, 8 Dec 2014 22:07:33 +0000 (14:07 -0800)
committerJarkko 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

index ffb1857..6e65113 100644 (file)
@@ -864,6 +864,7 @@ deUint32 GLContext::createProgram (ShaderProgram* shader)
        if (!program->isOk())
        {
                m_log << *program;
+               delete program;
                TCU_FAIL("Compile failed");
        }