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 ffb1857089b78a2c478e53eb45d00581be890601..6e651133bf0585e5a963b94f8338471118d85c3d 100644 (file)
@@ -864,6 +864,7 @@ deUint32 GLContext::createProgram (ShaderProgram* shader)
        if (!program->isOk())
        {
                m_log << *program;
+               delete program;
                TCU_FAIL("Compile failed");
        }