File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ namespace cv {
244
244
}
245
245
}
246
246
247
- free ( thresholds) ;
247
+ delete [] thresholds;
248
248
}
249
249
250
250
void GraphSegmentationImpl::filterSmallAreas (Edge *edges, const int &nb_edges, PointSet *es) {
@@ -300,7 +300,7 @@ namespace cv {
300
300
}
301
301
}
302
302
303
- free ( mapped_id) ;
303
+ delete [] mapped_id;
304
304
}
305
305
306
306
void GraphSegmentationImpl::processImage (InputArray src, OutputArray dst) {
@@ -332,7 +332,7 @@ namespace cv {
332
332
// Map to final output
333
333
finalMapping (es, output);
334
334
335
- free ( edges) ;
335
+ delete [] edges;
336
336
delete es;
337
337
338
338
}
@@ -359,7 +359,7 @@ namespace cv {
359
359
}
360
360
361
361
PointSet::~PointSet () {
362
- free ( mapping) ;
362
+ delete [] mapping;
363
363
}
364
364
365
365
int PointSet::getBasePoint ( int p) {
You can’t perform that action at this time.
0 commit comments