Fix GPDomain potential leak