diff options
| author | Dominik Wenger <domonoky@googlemail.com> | 2010-03-30 17:43:49 +0000 |
|---|---|---|
| committer | Dominik Wenger <domonoky@googlemail.com> | 2010-03-30 17:43:49 +0000 |
| commit | a79fee019e3901edb8c7f3a2b5ba208a57c06a00 (patch) | |
| tree | 39d2fe0d373ef0b94adcbede76490e447896e418 | |
| parent | 4c7a16b43c1de03109162a5a50415f38ee009a65 (diff) | |
| download | rockbox-a79fee019e3901edb8c7f3a2b5ba208a57c06a00.zip rockbox-a79fee019e3901edb8c7f3a2b5ba208a57c06a00.tar.gz rockbox-a79fee019e3901edb8c7f3a2b5ba208a57c06a00.tar.bz2 rockbox-a79fee019e3901edb8c7f3a2b5ba208a57c06a00.tar.xz | |
Delete tts objects after use.
Author: Delyan Kratunov
Flyspray: FS#11155 part1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25401 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/rbutilqt/configure.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index c57554a..78a836b 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp @@ -403,6 +403,9 @@ void Config::updateTtsState(int index) ui.configTTSstatus->setText(tr("Configuration INVALID")); ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png"))); } + + delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, + since that would delete the TTSBase instance on application exit*/ } void Config::updateEncState() @@ -699,6 +702,8 @@ void Config::configTts() EncTtsCfgGui gui(this,tts,TTSBase::getTTSName(ui.comboTts->itemData(index).toString())); gui.exec(); updateTtsState(ui.comboTts->currentIndex()); + delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, + since that would delete the TTSBase instance on application exit*/ } void Config::testTts() @@ -745,6 +750,9 @@ void Config::testTts() #else QSound::play(filename); #endif + + delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, + since that would delete the TTSBase instance on application exit*/ } void Config::configEnc() |