Merge pull request #1861 from mcginty/cursor-leak

prevent another cursor leak
pull/1/head
Moxie Marlinspike 10 years ago
commit 567224b4a6

@ -108,6 +108,7 @@ public class ApnDatabase {
}
if (cursor == null || !cursor.moveToFirst()) {
if (cursor != null) cursor.close();
Log.w(TAG, "Querying table for MCC+MNC " + mccmnc + " without APN name");
cursor = db.query(TABLE_NAME, null,
BASE_SELECTION,

Loading…
Cancel
Save