projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cbdc3f4
)
Fix memory leak of CECP state
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 20 Jul 2021 18:05:05 +0000 (20:05 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 20 Jul 2021 18:05:05 +0000 (20:05 +0200)
Closes #331.
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
d291c76
..
7934e8b
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-30,6
+30,7
@@
#include "piece.h"
#include "variant.h"
+#include "xboard.h"
using namespace Stockfish;
@@
-57,5
+58,6
@@
int main(int argc, char* argv[]) {
Threads.set(0);
variants.clear_all();
pieceMap.clear_all();
+ delete XBoard::stateMachine;
return 0;
}