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

Skip to content
Commit eed02cb4 authored by Hemant Gupta's avatar Hemant Gupta Committed by Linux Build Service Account
Browse files

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
parent 172b4fe0
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