Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
clean up espeak at exit unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
velnias75 committed Mar 6, 2015
1 parent 71ddd3d commit 2c7762d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/espeak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ ESpeak::ESpeak(QObject *p) : QObject(p), m_speakTxt(), m_lang("de"),

ESpeak::~ESpeak() {

if(m_enabled) {
espeak_Cancel();
espeak_Terminate();
}
if(m_enabled) espeak_Cancel();

espeak_Terminate();

free(m_path);
}
Expand Down

0 comments on commit 2c7762d

Please sign in to comment.