Decreases the refcount of the state.
If the refcount reaches 0, the state will be freed.
a CodecState