Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 4a9afbf82304be8005c09943b9f545914d51c280 1 parent fc6a441
Peter Hille (png!das-system) authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  ktg/gentexture.cpp
2  ktg/gentexture.cpp
@@ -586,7 +586,7 @@ void GenTexture::Cells(const GenTexture &grad,const CellCenter *centers,sInt nCe
586 586 sVERIFY(((mode & 1) == 0) ? nCenters >= 1 : nCenters >= 2);
587 587
588 588 Pixel *out = Data;
589   - CellPoint *points = new CellPoint[nCenters];
  589 + CellPoint *points = NULL;
590 590
591 591 points = new CellPoint[nCenters];
592 592

0 comments on commit 4a9afbf

Please sign in to comment.
Something went wrong with that request. Please try again.