Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: Add protected keyword to finalize.
Browse files Browse the repository at this point in the history
  • Loading branch information
PonyCui committed Jan 21, 2019
1 parent 8506240 commit 197f4f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SVGAParser(private val context: Context) {
private var threadPoolBlockingQueue = LinkedBlockingQueue<Runnable>()
private var threadPoolExecutor = ThreadPoolExecutor(3, 10, 60000, TimeUnit.MILLISECONDS, this.threadPoolBlockingQueue)

fun finalize() {
protected fun finalize() {
threadPoolExecutor.shutdown()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private val options = BitmapFactory.Options()
*/
class SVGAVideoEntity {

fun finalize() {
protected fun finalize() {
this.soundPool?.release()
this.soundPool = null
this.images.forEach { it.value.recycle() }
Expand Down

0 comments on commit 197f4f9

Please sign in to comment.