Skip to content

Commit

Permalink
fix double allocation in ktg/gentexture.cpp (Issue #4 on upstream)
Browse files Browse the repository at this point in the history
  • Loading branch information
png85 committed Apr 17, 2012
1 parent fc6a441 commit 4a9afbf
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 4a9afbf

Please sign in to comment.