fix: removed state exit call from state_machine_destroy

This commit is contained in:
Sara 2024-01-19 15:26:27 +01:00
parent 5e99651a0e
commit 058c8e18fa

View file

@ -27,7 +27,6 @@ StateMachine* state_machine_init(void* data, const State* start_state) {
}
void state_machine_destroy(StateMachine* self) {
self->current_state->exit(self->data);
free(self);
}