Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1af17aa authored by Mykola Kondratenko's avatar Mykola Kondratenko Committed by Eric Laurent
Browse files

Fix WaveGenerator memory leak

Releasing memory with ToneGenerator::stopTone() depends on
ToneGenerator::mState that can cause memory leak in case
mState is TONE_INIT.

Remove dependency to mState by adding ToneGenerator::clearWaveGens()
explicit call in ToneGenerator destructor.

Bug: 29916937

Change-Id: I5ccfbca9f2ae1abac9e160a2a309fb6962d4a110
parent eb048299
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment