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

Skip to content
Commit 2b49066e 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 bea67b8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment