We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5733f5 commit c8bc7cfCopy full SHA for c8bc7cf
src/fbow.cpp
@@ -6,7 +6,13 @@ namespace fbow{
6
7
8
Vocabulary::~Vocabulary(){
9
- if (_data!=0) free( _data);
+ if (_data != 0) {
10
+#if WIN32
11
+ _aligned_free(_data);
12
+#else
13
+ free(_data);
14
+#endif
15
+ }
16
}
17
18
src/fbow.h
@@ -183,7 +183,15 @@ class FBOW_API Vocabulary
183
int _block_desc_size_bytes_wp;
184
register_type *feature=0;
185
public:
186
- ~Lx(){if (feature!=0)free(feature);}
+ ~Lx(){
187
+ if (feature != 0) {
188
189
+ _aligned_free(feature);
190
191
+ free(feature);
192
193
194
195
void setParams(int desc_size, int block_desc_size_bytes_wp){
196
assert(block_desc_size_bytes_wp%aligment==0);
197
_desc_size=desc_size;
0 commit comments