summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Vaibhav Devmurari <vdevmurari@google.com> 2024-01-23 17:59:05 +0000
committer Vaibhav Devmurari <vdevmurari@google.com> 2024-01-23 18:07:01 +0000
commit325b0aff231401f09a46f0f411eacc1cb0805f48 (patch)
tree0a6bb762b186eb9a50e84558163c4006a058d3ff /libs/androidfw/ResourceTimer.cpp
parent4d67752afa01d38dff24b2017e61e178dbac0239 (diff)
Fix memory leak where SC for drag is never released
Steps: Finish DnD from any app and check `adb shell dumpsys SurfaceFlinger` Observation: Drag surface remanined even after force GC, but got cleared on "Force stop" or "killing" the client app that started drag. Some things observed in debugging: When passing surface control over binder, a new native object ptr was created so releasing the received SC doesn't mean the sent SC is also cleared. So, need to release local variables as well to ensure no memory leak. Bug: 314059463 Test: manual Change-Id: Id45bcf5c7a243a5e9c5dde33138c74089f1deb28
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions