Mercurial > hg > audiodb
comparison lshlib.cpp @ 482:bf54b8fa7d89 memory-leaks
plugged IndexName memory leak in lshlib.cpp
| author | mas01mc |
|---|---|
| date | Sat, 10 Jan 2009 13:23:41 +0000 |
| parents | cead91ecf9a2 |
| children | 6439cfba2524 |
comparison
equal
deleted
inserted
replaced
| 481:cead91ecf9a2 | 482:bf54b8fa7d89 |
|---|---|
| 498 } | 498 } |
| 499 } | 499 } |
| 500 | 500 |
| 501 G::~G(){ | 501 G::~G(){ |
| 502 delete lshHeader; | 502 delete lshHeader; |
| 503 delete[] indexName; | |
| 503 } | 504 } |
| 504 | 505 |
| 505 // single point insertion; inserted values are hash value and pointID | 506 // single point insertion; inserted values are hash value and pointID |
| 506 Uns32T G::insert_point(vector<float>& v, Uns32T pp){ | 507 Uns32T G::insert_point(vector<float>& v, Uns32T pp){ |
| 507 Uns32T collisionCount = 0; | 508 Uns32T collisionCount = 0; |
