fix 2 (possible) memory leaks

Suggestion: also delete pwalletdbEncryption in CWallet's destructor. This will make sure it will always be deleted when the wallet object is deleted/goes out of scope.