Do not keep a pointer to the internal state of a temporary state.