mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
explicit destroy for allocations around shadows
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user