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

Commit 98486ea0 authored by Zhihai Xu's avatar Zhihai Xu
Browse files

resource leakage in bluetooth MAP when empty message in phone.

bug:10844044
Change-Id: I60c1b0206d7ba4653d149bee2f9f0dd6da6a5afb
parent a687340d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1159,8 +1159,8 @@ public class BluetoothMapContentObserver {
                Sms.moveMessageToFolder(mContext, msgInfo.uri,
                    Sms.MESSAGE_TYPE_FAILED, 0);
            } while (c.moveToNext());
            c.close();
        }
        if (c != null) c.close();
    }

    private void removeDeletedMessages() {