diff --git a/app/src/main/java/net/nullsum/audinaut/util/SongDBHandler.java b/app/src/main/java/net/nullsum/audinaut/util/SongDBHandler.java index c2ce277..34d60e3 100644 --- a/app/src/main/java/net/nullsum/audinaut/util/SongDBHandler.java +++ b/app/src/main/java/net/nullsum/audinaut/util/SongDBHandler.java @@ -186,6 +186,7 @@ public class SongDBHandler extends SQLiteOpenHelper { return null; } finally { + cursor.close(); db.close(); } } @@ -230,6 +231,7 @@ public class SongDBHandler extends SQLiteOpenHelper { return null; } finally { + cursor.close(); db.close(); } } @@ -246,6 +248,7 @@ public class SongDBHandler extends SQLiteOpenHelper { return null; } finally { + cursor.close(); db.close(); } } diff --git a/app/src/main/java/net/nullsum/audinaut/view/SeekBarPreference.java b/app/src/main/java/net/nullsum/audinaut/view/SeekBarPreference.java index 44d002a..997c102 100644 --- a/app/src/main/java/net/nullsum/audinaut/view/SeekBarPreference.java +++ b/app/src/main/java/net/nullsum/audinaut/view/SeekBarPreference.java @@ -71,6 +71,8 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee if(mDisplay == null) { mDisplay = "%.0f"; } + + a.recycle(); } @Override