Be considerate for those without the resource allocations

This commit is contained in:
TwistedUmbrella 2014-01-24 14:09:25 -05:00
parent a0260c0d97
commit 95c6a1cc18
1 changed files with 4 additions and 0 deletions

View File

@ -358,6 +358,10 @@ public class InputModFragment extends Fragment {
Bitmap resizedBitmap = Bitmap.createBitmap(image, x, y, 64, 64,
matrix, true);
BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);
image.recycle();
image = null;
bitmap.close();
bitmap = null;
return bmd;
} catch (IOException e1) {
e1.printStackTrace();