memleaks in predefined trial wave functions

Predefined trial wavefunctions has memleaks.

Edited by Florian Goth