mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Merge pull request #1861 from mcginty/cursor-leak
prevent another cursor leak
This commit is contained in:
commit
567224b4a6
@ -108,6 +108,7 @@ public class ApnDatabase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cursor == null || !cursor.moveToFirst()) {
|
if (cursor == null || !cursor.moveToFirst()) {
|
||||||
|
if (cursor != null) cursor.close();
|
||||||
Log.w(TAG, "Querying table for MCC+MNC " + mccmnc + " without APN name");
|
Log.w(TAG, "Querying table for MCC+MNC " + mccmnc + " without APN name");
|
||||||
cursor = db.query(TABLE_NAME, null,
|
cursor = db.query(TABLE_NAME, null,
|
||||||
BASE_SELECTION,
|
BASE_SELECTION,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user