mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-07 23:31:26 +00:00
Clean up the decoder memory in espeak_Terminate.
This commit is contained in:
@@ -901,6 +901,11 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Terminate(void)
|
||||
FreeVoiceList();
|
||||
translator = NULL;
|
||||
|
||||
if (p_decoder != NULL) {
|
||||
destroy_text_decoder(p_decoder);
|
||||
p_decoder = NULL;
|
||||
}
|
||||
|
||||
return ENS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user