mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 12:34:30 +00:00
gl_engine: fixed mismatched malloc/free calls.
This commit is contained in:
parent
2fd9bb76b6
commit
353e8316c2
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ uint32_t GlShader::complileShader(uint32_t type, char* shaderSrc)
|
||||||
auto infoLog = static_cast<char*>(malloc(sizeof(char)*infoLen));
|
auto infoLog = static_cast<char*>(malloc(sizeof(char)*infoLen));
|
||||||
glGetShaderInfoLog(shader, infoLen, NULL, infoLog);
|
glGetShaderInfoLog(shader, infoLen, NULL, infoLog);
|
||||||
TVGERR("GL_ENGINE", "Error compiling shader: %s", infoLog);
|
TVGERR("GL_ENGINE", "Error compiling shader: %s", infoLog);
|
||||||
delete[] infoLog;
|
free(infoLog);
|
||||||
}
|
}
|
||||||
glDeleteShader(shader);
|
glDeleteShader(shader);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue