Don't destroy fAllPubMethods when trying to build it ....

Also delete fAllPubMethods before fMethods to avoid accessing deleted memory.