Commit 4114d068 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #95 from berak/line_descriptor_fix_delete

fix mismatched delete[] calls in line_descriptor.cpp
parents 0ea1de85 70e9ee62
...@@ -189,8 +189,8 @@ void BinaryDescriptorMatcher::match( const Mat& queryDescriptors, std::vector<DM ...@@ -189,8 +189,8 @@ void BinaryDescriptorMatcher::match( const Mat& queryDescriptors, std::vector<DM
} }
/* delete data */ /* delete data */
delete results; delete[] results;
delete numres; delete[] numres;
} }
/* for every input descriptor, find the best matching one (for a pair of images) */ /* for every input descriptor, find the best matching one (for a pair of images) */
...@@ -248,8 +248,8 @@ void BinaryDescriptorMatcher::match( const Mat& queryDescriptors, const Mat& tra ...@@ -248,8 +248,8 @@ void BinaryDescriptorMatcher::match( const Mat& queryDescriptors, const Mat& tra
/* delete data */ /* delete data */
delete mh; delete mh;
delete results; delete[] results;
delete numres; delete[] numres;
} }
...@@ -330,8 +330,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, const Mat& ...@@ -330,8 +330,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, const Mat&
/* delete data */ /* delete data */
delete mh; delete mh;
delete results; delete[] results;
delete numres; delete[] numres;
} }
/* for every input descriptor, /* for every input descriptor,
...@@ -419,8 +419,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, std::vector ...@@ -419,8 +419,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, std::vector
} }
/* delete data */ /* delete data */
delete results; delete[] results;
delete numres; delete[] numres;
} }
/* for every input desciptor, find all the ones falling in a /* for every input desciptor, find all the ones falling in a
...@@ -499,8 +499,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, const Ma ...@@ -499,8 +499,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, const Ma
/* delete data */ /* delete data */
delete mh; delete mh;
delete results; delete[] results;
delete numres; delete[] numres;
} }
/* for every input descriptor, find all the ones falling in a /* for every input descriptor, find all the ones falling in a
...@@ -587,8 +587,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, std::vec ...@@ -587,8 +587,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, std::vec
} }
/* delete data */ /* delete data */
delete results; delete[] results;
delete numres; delete[] numres;
} }
......
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