I wrote the real alpha-beta pruning algorithm, that is the "neogen" one (you'll find a couple in the WoWBrain.cpp file).
I made a version that is not the top for memory and time consumption (it copies many times many vectors), but still I had problems in freeing memory.
Maybe we can implement the same algorithm in a different way (which would resolve both the speed problem [relative] and the leak one [important] )
Otherwise, we can try to correct this function in order to correctly free the memory, in a "first make it work" approach.
I wrote the real alpha-beta pruning algorithm, that is the "neogen" one (you'll find a couple in the WoWBrain.cpp file).
I made a version that is not the top for memory and time consumption (it copies many times many vectors), but still I had problems in freeing memory.
Maybe we can implement the same algorithm in a different way (which would resolve both the speed problem [relative] and the leak one [important] ) Otherwise, we can try to correct this function in order to correctly free the memory, in a "first make it work" approach.