fix: removed state exit call from state_machine_destroy
This commit is contained in:
parent
5e99651a0e
commit
058c8e18fa
|
@ -27,7 +27,6 @@ StateMachine* state_machine_init(void* data, const State* start_state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void state_machine_destroy(StateMachine* self) {
|
void state_machine_destroy(StateMachine* self) {
|
||||||
self->current_state->exit(self->data);
|
|
||||||
free(self);
|
free(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue