Be sure book file is closed before we leave
authorMarco Costalba <mcostalba@gmail.com>
Thu, 7 May 2009 07:27:38 +0000 (09:27 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 7 May 2009 07:27:38 +0000 (09:27 +0200)
commit2155fb78256204aae5aa80946dfe7d8d9c6e2397
treed28eb7f3cda38bd5126a1fe6c1e8c70d30571710
parenta03b8074c884086d13b80e1d291b3800a4512a3c
Be sure book file is closed before we leave

Move closing of file in Book destructor. This
guarantees us against leaving the file open under
any case and simplifies also Book use.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/book.cpp
src/book.h
src/search.cpp
src/uci.cpp