Commit 8b05abef authored by Sébastien Toque's avatar Sébastien Toque

always close a cursor

parent 960052e0
......@@ -286,9 +286,11 @@ public class AudioService extends Service {
// do nothing
} else if (!cursor.moveToFirst()) {
// do nothing
cursor.close();
} else {
int titleColumn = cursor.getColumnIndex(android.provider.MediaStore.Audio.Albums.ALBUM_ART);
String albumArt = cursor.getString(titleColumn);
cursor.close();
Bitmap b = BitmapFactory.decodeFile(albumArt);
if (b != null)
return b;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment