Merge pull request #1470 from h11128/fix-one-memory-leak

add leak canary dependency and fix one leak
pull/1486/head
kunfei 3 years ago committed by GitHub
commit 16007e0899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/build.gradle
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -225,4 +225,7 @@ dependencies {
//com.github.AmrDeveloper:CodeView已集成到应用内
//epubLib集成到应用内
// LeakCanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
}

@ -976,6 +976,7 @@ class ReadBookActivity : BaseReadBookActivity(),
textActionMenu.dismiss()
binding.readView.onDestroy()
ReadBook.msg = null
ReadBook.callBack = null
if (!BuildConfig.DEBUG) {
Backup.autoBack(this)
}

Loading…
Cancel
Save