[Refs #87: Static Analysis] Couple of cases that confused the analyser

This commit is contained in:
baldurk
2014-10-05 19:01:21 +01:00
parent 957e73ce28
commit efbc27909c
3 changed files with 14 additions and 2 deletions
@@ -103,8 +103,10 @@ bool WrappedOpenGL::Serialise_glShaderSource(GLuint shader, GLsizei count, const
if(m_State == READING)
{
const char **strings = new const char*[srcs.size()];
for(size_t i=0; i < srcs.size(); i++)
size_t numStrings = srcs.size();
const char **strings = new const char*[numStrings];
for(size_t i=0; i < numStrings; i++)
strings[i] = srcs[i].c_str();
ResourceId liveId = GetResourceManager()->GetLiveID(id);