Bluetooth: Fix resource leak in OPP (3/3)
- This patch handles closing of input stream if no device is selected
by user when trying to send file via BT. Without this patch, input
stream was never closed resulting in leak with each iteration and
system crash after 1024 iterations.
- This change will remove hashmap share entry if user selected share
via BT and press back or press cancel. Otherwise, hashmap will reach
its limit for successive share via BT and cause BT app to crash.
CRs-Fixed: 662147, 678607
Change-Id: I92aa0d8e81977fde0446f565f1de95e2d91e1e9c
3 files changed