From a1f5a60b8f4ce7e7792cc52a40b433e790240bc5 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Sun, 5 Mar 2017 11:40:26 -0500 Subject: [PATCH] Recycle --- app/src/main/java/net/nullsum/audinaut/util/SongDBHandler.java | 3 +++ .../main/java/net/nullsum/audinaut/view/SeekBarPreference.java | 2 ++ 2 files changed, 5 insertions(+) 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