Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
gleng committed Oct 19, 2018
1 parent cd65105 commit 1e82620
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ namespace pcl
{
vvDotTable = dvDotTable = ddDotTable = NULL;
valueTables = dValueTables = NULL;
baseFunctions = NULL;
baseBSplines = NULL;
functionCount = sampleCount = 0;
}

Expand All @@ -98,9 +100,14 @@ namespace pcl

if( valueTables ) delete[] valueTables;
if( dValueTables ) delete[] dValueTables;

if( baseFunctions ) delete[] baseFunctions;
if( baseBSplines ) delete[] baseBSplines;
}
vvDotTable = dvDotTable = ddDotTable = NULL;
valueTables = dValueTables=NULL;
baseFunctions = NULL;
baseBSplines = NULL;
functionCount = 0;
}

Expand Down

0 comments on commit 1e82620

Please sign in to comment.