corrected memory leak: delete pointer in assignment operator