┬───
│ GC Root: System class
│
├─ android.view.inputmethod.InputMethodManager class
│ Leaking: NO (InputMethodManager↓ is not leaking and a class is never leaking)
│ ↓ static InputMethodManager.sInstance
├─ android.view.inputmethod.InputMethodManager instance
│ Leaking: NO (InputMethodManager is a singleton)
│ Library leak match: instance field android.view.inputmethod.InputMethodManager#mNextServedView
│ ↓ InputMethodManager.mNextServedView
│ ~~~~~~~~~~~~~~~
╰→ android.widget.LinearLayout instance
Leaking: YES (View.mContext references a destroyed activity)
Report:
Hprof: repro_lib_leak.hprof.zip
mServedView
andmNextServedView
point to the same view.