Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4a9afbf82304be8005c09943b9f545914d51c280 1 parent fc6a441
@png85 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ktg/gentexture.cpp
View
2  ktg/gentexture.cpp
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.