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

Commit 50844788 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Dispose GsmCdmaConnection object in teardown.

Noticed this log line in some unit test bugreport:
am_wtf  : [0,13185,com.android.frameworks.telephonytests,545832516,
PowerManager,WakeLock finalized while still held: GsmCdmaConnection]

Test: atest FrameworksTelephonyTests
Bug: 169117139
Merged-in: I5cb7ae9d68e46e302e0825ba5ee1d9218c9fa32c
Change-Id: I5cb7ae9d68e46e302e0825ba5ee1d9218c9fa32c
(cherry picked from commit ae7dd5a2)
parent 7e474fe0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -57,7 +57,10 @@ public class GsmCdmaConnectionTest extends TelephonyTest {

    @After
    public void tearDown() throws Exception {
        if (connection != null) {
            connection.dispose();
            connection = null;
        }
        super.tearDown();
    }