Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/ximgproc/src/graphsegmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ namespace cv {
}
}

free(thresholds);
delete [] thresholds;
}

void GraphSegmentationImpl::filterSmallAreas(Edge *edges, const int &nb_edges, PointSet *es) {
Expand Down Expand Up @@ -300,7 +300,7 @@ namespace cv {
}
}

free(mapped_id);
delete [] mapped_id;
}

void GraphSegmentationImpl::processImage(InputArray src, OutputArray dst) {
Expand Down Expand Up @@ -332,7 +332,7 @@ namespace cv {
// Map to final output
finalMapping(es, output);

free(edges);
delete [] edges;
delete es;

}
Expand All @@ -359,7 +359,7 @@ namespace cv {
}

PointSet::~PointSet() {
free(mapping);
delete [] mapping;
}

int PointSet::getBasePoint( int p) {
Expand Down