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
}
/* delete data */
delete results;
delete numres;
delete[] results;
delete[] numres;
}
/* 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
/* delete data */
delete mh;
delete results;
delete numres;
delete[] results;
delete[] numres;
}
......@@ -330,8 +330,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, const Mat&
/* delete data */
delete mh;
delete results;
delete numres;
delete[] results;
delete[] numres;
}
/* for every input descriptor,
......@@ -419,8 +419,8 @@ void BinaryDescriptorMatcher::knnMatch( const Mat& queryDescriptors, std::vector
}
/* delete data */
delete results;
delete numres;
delete[] results;
delete[] numres;
}
/* for every input desciptor, find all the ones falling in a
......@@ -499,8 +499,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, const Ma
/* delete data */
delete mh;
delete results;
delete numres;
delete[] results;
delete[] numres;
}
/* for every input descriptor, find all the ones falling in a
......@@ -587,8 +587,8 @@ void BinaryDescriptorMatcher::radiusMatch( const Mat& queryDescriptors, std::vec
}
/* delete data */
delete results;
delete numres;
delete[] results;
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