explicit destroy for allocations around shadows

This commit is contained in:
i-ts
2023-12-11 15:09:17 +03:00
parent bf247cc840
commit 03f87e710d
2 changed files with 4 additions and 0 deletions
@@ -143,6 +143,8 @@ internal object ShadowCache {
}
outAllocation.copyTo(out)
outAllocation.destroy()
inAllocation.destroy()
}
private fun Bitmap.toNinePatch() =
@@ -87,6 +87,8 @@ internal fun Bitmap.getBlurredBitmap(
forEach(output)
}
output.copyTo(bitmap)
input.destroy()
output.destroy()
return bitmap
}