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

Skip to content
Commit 0bf70d42 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Do not create Clipboard entries for invalid keys.

This fixed memory leak caused by asynchronous calls to
getClipboardLocked scheduled on HandlerThread which
were causing that previously clean-ed up entries corresponding
to released VirtualDevice instances were re-created and never
cleared.

Similar memory leak can happen when getClipboardLocked is called
for stopped user after clipboard were already cleared for the user.

Bug: 290350147
Test: atest StreamedAppClipboardTest --iterations 100 & heapdump check
Change-Id: Ie7e972f40411685199d9fea4cc6f62928e7580b4
parent 2d5a80b2
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