Skip to content

Commit

Permalink
Merge pull request #5 from png85/OpenKTG.double_alloc_fix
Browse files Browse the repository at this point in the history
fix double allocation in ktg/gentexture.cpp (Issue #4 on upstream)
  • Loading branch information
rygorous committed Apr 17, 2012
2 parents fc6a441 + 4a9afbf commit b152352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ktg/gentexture.cpp
Expand Up @@ -586,7 +586,7 @@ void GenTexture::Cells(const GenTexture &grad,const CellCenter *centers,sInt nCe
sVERIFY(((mode & 1) == 0) ? nCenters >= 1 : nCenters >= 2);

Pixel *out = Data;
CellPoint *points = new CellPoint[nCenters];
CellPoint *points = NULL;

points = new CellPoint[nCenters];

Expand Down

0 comments on commit b152352

Please sign in to comment.