mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2025-09-15 13:28:35 +08:00
whisper : free backend instances in whisper_state
This commit is contained in:
parent
76c8b5235b
commit
a2f3b82db3
@ -3186,6 +3186,8 @@ void whisper_free_state(struct whisper_state * state)
|
||||
whisper_allocr_free(state->alloc_cross);
|
||||
whisper_allocr_free(state->alloc_decode);
|
||||
|
||||
ggml_backend_free(state->backend);
|
||||
|
||||
delete state;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user