1
0
Fork 0

REVIEW: Memory Leak - FLITEVoiceSynthesizer ctor

1,696 bytes in 4 blocks are definitely lost in loss record 6,145 of 6,440
This commit is contained in:
Scott Giese 2020-08-23 00:21:11 -05:00
parent 0ce2fdf190
commit 63d3dd4cbd

View file

@ -92,6 +92,7 @@ void FLITEVoiceSynthesizer::synthesize( SynthesizeRequest & request)
}
FLITEVoiceSynthesizer::FLITEVoiceSynthesizer(const std::string & voice)
// REVIEW: Memory Leak - 1,696 bytes in 4 blocks are definitely lost in loss record 6,145 of 6,440
: _engine(new Flite_HTS_Engine), _worker(new FLITEVoiceSynthesizer::WorkerThread(this)), _volume(6.0)
{
_volume = fgGetDouble("/sim/sound/voice-synthesizer/volume", _volume );