Commit fe489687 authored by Ilya Lysenkov's avatar Ilya Lysenkov

Fixed a potential memory leak in OneWayDescriptorBase hierarchy.

parent a702e5b2
...@@ -1030,7 +1030,7 @@ public: ...@@ -1030,7 +1030,7 @@ public:
int pca_dim_high = 100, int pca_dim_low = 100); int pca_dim_high = 100, int pca_dim_low = 100);
~OneWayDescriptorBase(); virtual ~OneWayDescriptorBase();
// Allocate: allocates memory for a given number of descriptors // Allocate: allocates memory for a given number of descriptors
void Allocate(int train_feature_count); void Allocate(int train_feature_count);
...@@ -1189,7 +1189,7 @@ public: ...@@ -1189,7 +1189,7 @@ public:
const string &train_path = string (), const string &images_list = string (), int pyr_levels = 1); const string &train_path = string (), const string &images_list = string (), int pyr_levels = 1);
~OneWayDescriptorObject(); virtual ~OneWayDescriptorObject();
// Allocate: allocates memory for a given number of features // Allocate: allocates memory for a given number of features
// - train_feature_count: the total number of features // - train_feature_count: the total number of features
......
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