Permalink
Browse files

fix double allocation in ktg/gentexture.cpp (Issue #4 on upstream)

  • Loading branch information...
png85 committed Apr 17, 2012
1 parent fc6a441 commit 4a9afbf82304be8005c09943b9f545914d51c280
Showing with 1 addition and 1 deletion.
  1. +1 −1 ktg/gentexture.cpp
View
@@ -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];

0 comments on commit 4a9afbf

Please sign in to comment.