Mercurial > hg > audiodb
changeset 483:7b24f2b423cc memory-leaks
added virtual keyword to destructors in lshlib.h (for future use)
author | mas01mc |
---|---|
date | Sat, 10 Jan 2009 13:24:36 +0000 |
parents | bf54b8fa7d89 |
children | d515ce3864fc |
files | lshlib.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lshlib.h Sat Jan 10 13:23:41 2009 +0000 +++ b/lshlib.h Sat Jan 10 13:24:36 2009 +0000 @@ -244,7 +244,7 @@ H(); H(Uns32T k, Uns32T m, Uns32T d, Uns32T N, Uns32T C, float w, float r); - ~H(); + virtual ~H(); float get_w(){return w;} float get_radius(){return radius;} @@ -341,7 +341,7 @@ public: G(char* lshFile, bool lshInCore = false); // unserialize constructor G(float w, Uns32T k,Uns32T m, Uns32T d, Uns32T N, Uns32T C, float r); // core constructor - ~G(); + virtual ~G(); Uns32T insert_point(vector<float>&, Uns32T pointID); void insert_point_set(vector<vector<float> >& vv, Uns32T basePointID);