Ultimaker/CuraEngine — pull request #48 by mspark93 (2013-12-24 07:40:06+00:00)
Title: a memory leak occurs when use "support type" option

due to following reasons

void generateSupportGrid(SupportStorage& storage, OptimizedModel* om, int supportAngle, bool supportEverywhere, int supportXYDistance, int supportZDistance)
{
storage.generated = false;
if (supportAngle < 0)
return;
storage.generated = true;

storage.gridOffset.X = om->vMin.x;
...
storage.grid = new vector[storage.gridWidth * storage.gridHeight];
...