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

Skip to content
Commit cc92c962 authored by Juffin Alex Varghese's avatar Juffin Alex Varghese Committed by Nitin Shivpure
Browse files

Bluetooth: Cleaning up cursor object to avoid memory leak

A case where cursor objects are leaked after BT OFF/ON,
when it is referenced (Directly OR Indirectly). So Garbage
Collector doesn't collect cursor objects which are referenced.
Setting NULL to cursor object after closing to mark those
variable as weak reference object. Any objects memory is
immediately claimed by GC, which are marked as weak Reference.

Change-Id: Ie1665c9c9ff69b2a190025d508aa9924b36146dd
CRs-Fixed: 579016
parent 2784abf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment