Skip to content

Commit

Permalink
Add IRequestFinishCallback leak from Android 10 (#1608)
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
  • Loading branch information
msfjarvis authored and pyricau committed Oct 29, 2019
1 parent 4a5746f commit 1f6c971
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions shark-android/src/main/java/shark/AndroidReferenceMatchers.kt
Expand Up @@ -50,6 +50,23 @@ enum class AndroidReferenceMatchers {

// ######## Android Framework known leaks ########

IREQUEST_FINISH_CALLBACK {
override fun add(
references: MutableList<ReferenceMatcher>
) {
references += instanceFieldLeak("android.app.Activity\$1", "this\$0",
description = "Android Q added a new android.app.IRequestFinishCallback\$Stub " +
"class. android.app.Activity creates an implementation of that interface as an " +
"anonymous subclass. That anonymous subclass has a reference to the activity. " +
"Another process is keeping the android.app.IRequestFinishCallback\$Stub " +
"reference alive long after Activity.onDestroyed() has been called, " +
"causing the activity to leak."
) {
sdkInt == 29
}
}
},

ACTIVITY_CLIENT_RECORD__NEXT_IDLE {
override fun add(
references: MutableList<ReferenceMatcher>
Expand Down

0 comments on commit 1f6c971

Please sign in to comment.