X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=c7c39e90cc9918d3cddb8611a12d8e66ffbf63a8;hp=1caa277e821ac0463110fe0df6487b74f7e20f79;hb=293c44bc09587259818a82e1d2afb511e552badd;hpb=083fe5812485597e13943b690cc24a8f25c0d140 diff --git a/src/tt.h b/src/tt.h index 1caa277e..c7c39e90 100644 --- a/src/tt.h +++ b/src/tt.h @@ -85,7 +85,7 @@ class TranspositionTable { static const unsigned ClusterSize = 4; // A cluster is 64 Bytes public: - ~TranspositionTable() { free(mem); } + ~TranspositionTable() { delete [] table; } void new_search() { generation++; } TTEntry* probe(const Key key) const; @@ -98,7 +98,6 @@ public: private: uint32_t hashMask; TTEntry* table; - void* mem; uint8_t generation; // Size must be not bigger then TTEntry::generation8 };