fix 2 (possible) memory leaks

Is this nit considered best practise after a delete call? If so you mean adding it after all ``delete pwalletdbEncryption;`` calls, right?