X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=1caa277e821ac0463110fe0df6487b74f7e20f79;hp=c7c39e90cc9918d3cddb8611a12d8e66ffbf63a8;hb=481eda4ca0121cfa16f5a29f364ca30ee2852409;hpb=9a1d5f0f1d8a12a85b198688d4f1d636a146eb7a diff --git a/src/tt.h b/src/tt.h index c7c39e90..1caa277e 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() { delete [] table; } + ~TranspositionTable() { free(mem); } void new_search() { generation++; } TTEntry* probe(const Key key) const; @@ -98,6 +98,7 @@ public: private: uint32_t hashMask; TTEntry* table; + void* mem; uint8_t generation; // Size must be not bigger then TTEntry::generation8 };