Missing destructor and added const reference as argument