Bug 859434 - Close thumbnail cursor in TopSitesView r=lucasr

This commit is contained in:
Mark Finkle 2013-04-08 15:43:19 -04:00
parent d5747ab42b
commit 70423dbebc

View File

@ -605,11 +605,13 @@ public class TopSitesView extends GridView {
}
final byte[] b = c.getBlob(c.getColumnIndexOrThrow(Thumbnails.DATA));
Bitmap bitmap = null;
if (b != null) {
return BitmapFactory.decodeByteArray(b, 0, b.length);
bitmap = BitmapFactory.decodeByteArray(b, 0, b.length);
}
c.close();
return null;
return bitmap;
}
@Override