Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into grid-1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed May 26, 2015
2 parents 2947680 + c9b6ecb commit 9f44de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PointTable.cpp
Expand Up @@ -63,7 +63,9 @@ PointId PointTable::addPoint()
{
if (m_numPts % m_blockPtCnt == 0)
{
char *buf = new char[pointsToBytes(m_blockPtCnt)];
size_t size = pointsToBytes(m_blockPtCnt);
char *buf = new char[size];
memset(buf, 0, size);
m_blocks.push_back(buf);
}
return m_numPts++;
Expand Down

0 comments on commit 9f44de1

Please sign in to comment.