set point to NULL after free/delete