Clean up the decoder memory in espeak_Terminate.

This commit is contained in:
Reece H. Dunn
2017-05-21 12:07:15 +01:00
parent 63e2826753
commit dced9f58fd
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -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;
}