Add missing close
This commit is contained in:
parent
7b8a2c9638
commit
1119047891
@ -101,10 +101,12 @@ public class DeliveryDbAdapter {
|
|||||||
public DeliveryDbAdapter open() throws SQLException {
|
public DeliveryDbAdapter open() throws SQLException {
|
||||||
mDbHelper = new DeliveryDbHelper(mCtx);
|
mDbHelper = new DeliveryDbHelper(mCtx);
|
||||||
mDb = mDbHelper.getWritableDatabase();
|
mDb = mDbHelper.getWritableDatabase();
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
|
mDb.close();
|
||||||
mDbHelper.close();
|
mDbHelper.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user