add "delete m;" in example 1