Add missing close

This commit is contained in:
Mathieu Maret 2011-10-30 01:16:33 +02:00
parent 7b8a2c9638
commit 1119047891

View File

@ -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();
} }