I am confused as to who's responsibility it is to free the memory of that UScenarioBuilder* .   The method is "edit", not "newBuilder".  Perhaps a convention is needed for that purpose? 
I'd like @jpgauthier to approve this.