Merge pull request #62 from grahamboree/master

A few edge-case memory leak fixes and an uninitialized pointer.
This commit is contained in:
Mikko Mononen 2014-12-31 20:25:59 +02:00
commit 2fe5c4fb0c
5 changed files with 5 additions and 1 deletions

View File

@ -178,6 +178,7 @@ bool InputGeom::load(rcContext* ctx, const char* filePath)
fclose(fp);
if (readLen != 1)
{
delete[] buf;
return false;
}

View File

@ -155,6 +155,7 @@ bool rcMeshLoaderObj::load(const char* filename)
if (readLen != 1)
{
delete[] buf;
return false;
}

View File

@ -768,7 +768,7 @@ class TempObstacleCreateTool : public SampleTool
public:
TempObstacleCreateTool()
TempObstacleCreateTool() : m_sample(0)
{
}

View File

@ -110,6 +110,7 @@ bool TestCase::load(const char* filePath)
fclose(fp);
if (readLen != 1)
{
delete[] buf;
return false;
}

View File

@ -261,6 +261,7 @@ bool imguiRenderGLInit(const char* fontpath)
fclose(fp);
if (readLen != size)
{
free(ttfBuffer);
return false;
}