summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Haofan Wang <haofanw@google.com> 2024-08-12 17:33:12 +0000
committer Haofan Wang <haofanw@google.com> 2024-08-12 20:10:26 +0000
commit211e03015268e50354b6192520ea369c9c6c23d7 (patch)
tree7d31618715caa40f7a3c1514f63c2ed47243f8eb /libs/androidfw/StringPool.cpp
parentcdd4658347af127518a997d5259fe9071cad597f (diff)
[0001] Fix segfault from double tuner closure
The JNI nativeClose() does not support closing twice. The tuner SP is set to null. On the second usage, it derefs it. Although the app shouldn't close the tuner twice, it solves the double close() issue from the CTS. Bug: 356779633 Test: atest android.media.tv.tuner.cts.TunerTest on cuttlefish Flag: EXEMPT bugfix (cherry picked from https://android-review.googlesource.com/q/commit:394903a386df2289c8320e9566f7396730a16c12) Merged-In: Ie4abdc5bf6cdcc6265383a76cfa671e06accc1a2 Change-Id: Ie4abdc5bf6cdcc6265383a76cfa671e06accc1a2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions