Clean code.

delete pointer after used.