From a0c5a79fe8d0bb6ea7b921f76bbe64565d06c0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=20=E6=98=8E=E8=BE=89?= Date: Wed, 15 May 2019 14:15:15 +0800 Subject: [PATCH] fix: Remove recycle operation on finalize method, this line due to crash on some devices. --- .../src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt b/library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt index 3220b845..6f4a97c2 100644 --- a/library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt +++ b/library/src/main/java/com/opensource/svgaplayer/SVGAVideoEntity.kt @@ -25,7 +25,6 @@ class SVGAVideoEntity { protected fun finalize() { this.soundPool?.release() this.soundPool = null - this.images.forEach { it.value.recycle() } this.images.clear() }