bitcoin/bitcoin — pull request #4912 by Diapolo (2014-09-14 11:08:19+00:00)
Title: add safety checks in init before calling delete

- init pwalletMain and pcoinsdbview to NULL
- add or extend NULL pointer checks before deleting any of pblocktree,
pcoinsTip, pcoinsdbview or pwalletMain
- change a LogPrintf for nScriptCheckThreads from unsigned to %d as it is
an integer