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

Skip to content
Commit bae5a32b authored by Songchun Fan's avatar Songchun Fan Committed by Song Chun Fan
Browse files

[SettingsProvider] always destroy old tracker before inserting a new one

Previously, the destroying of the old tracker and the insertion of the
new tracker are in two separate synchronized blocks. This creates the
opportunity of a race condition, where another tracker is inserted
between the two synchronized blocks, and is never properly destroyed,
which leads to memory leaks. This CL fixes that.

BUG: 277448672
Test: builds; this is a theoretical fix as I couldn't reproduce the bug
locally

Change-Id: Ia0fbcee6f56dd1035e68d20f3730b4d34e2085b6
parent acca83b6
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