fixed warning: deleting pointer to incomplete type.