Fix taking address of temporary, and destroy it