Add missing close

This commit is contained in:
Mathieu Maret 2011-10-30 01:16:33 +02:00
parent 7b8a2c9638
commit 1119047891
1 changed files with 3 additions and 1 deletions

View File

@ -101,10 +101,12 @@ public class DeliveryDbAdapter {
public DeliveryDbAdapter open() throws SQLException {
mDbHelper = new DeliveryDbHelper(mCtx);
mDb = mDbHelper.getWritableDatabase();
return this;
}
public void close() {
mDb.close();
mDbHelper.close();
}