Mercurial > hg > audiodb
diff audioDB.cpp @ 474:f9d86b1db21c
Fixed memory leaks, added WS --no_unit_norming, and removed capping of LSH_N_POINT_BITS to 15 bits, instead allow any number of bits to encode points, remaining bits encode tracks
author | mas01mc |
---|---|
date | Fri, 09 Jan 2009 18:05:32 +0000 |
parents | 51d02229288f |
children | 342822c2d49a |
line wrap: on
line diff
--- a/audioDB.cpp Tue Jan 06 07:02:11 2009 +0000 +++ b/audioDB.cpp Fri Jan 09 18:05:32 2009 +0000 @@ -40,13 +40,15 @@ if(dbName && adb_root) prefix_name((char** const)&dbName, adb_root); - if(O2_ACTION(COM_SERVER)) + if(O2_ACTION(COM_SERVER)){ #ifdef LIBRARY ; #else startServer(); + if(SERVER_LSH_INDEX_SINGLETON) + delete lsh; #endif - + } else if(O2_ACTION(COM_CREATE)) create(dbName);