Browse Source

splayer: fix memory leak on espeak terminate

master
Yury Popov 2 years ago
parent
commit
b996d39d40
No account linked to committer's email address
2 changed files with 5 additions and 1 deletions
  1. 3
    1
      src/libespeak-ng/sPlayer.c
  2. 2
    0
      src/libespeak-ng/speech.c

+ 3
- 1
src/libespeak-ng/sPlayer.c View File

} }


void KlattFiniSP() { void KlattFiniSP() {
speechPlayer_terminate(speechPlayerHandle);
if (speechPlayerHandle)
speechPlayer_terminate(speechPlayerHandle);
speechPlayerHandle = NULL;
} }


void KlattResetSP() { void KlattResetSP() {

+ 2
- 0
src/libespeak-ng/speech.c View File

p_decoder = NULL; p_decoder = NULL;
} }


WavegenFini();

return ENS_OK; return ENS_OK;
} }



Loading…
Cancel
Save