Removed unnecessary NULL pointer checks from delete calls.