Commit 0c241990 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #628 from berak:ximgproc_fix_delete

parents bf461d1a a9d1ab47
......@@ -244,7 +244,7 @@ namespace cv {
}
}
free(thresholds);
delete [] thresholds;
}
void GraphSegmentationImpl::filterSmallAreas(Edge *edges, const int &nb_edges, PointSet *es) {
......@@ -300,7 +300,7 @@ namespace cv {
}
}
free(mapped_id);
delete [] mapped_id;
}
void GraphSegmentationImpl::processImage(InputArray src, OutputArray dst) {
......@@ -332,7 +332,7 @@ namespace cv {
// Map to final output
finalMapping(es, output);
free(edges);
delete [] edges;
delete es;
}
......@@ -359,7 +359,7 @@ namespace cv {
}
PointSet::~PointSet() {
free(mapping);
delete [] mapping;
}
int PointSet::getBasePoint( int p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment