Does anyone know what causes this memory leak? I have no idea how to fix it
Asked
Active
Viewed 747 times
0

Sanket Bhat
- 340
- 3
- 16

daiyiming
- 19
- 1
-
Some source code from the referenced classes would help. – Jon Adams Nov 30 '17 at 15:40
1 Answers
2
somewhere in your class you are storing the value of mContext as a variable which is which is not being destroyed when your activity recreates (e.g. rotates)
try to remove that mContext from that class or make sure that it gets destroyed with the activity.

Jay Pandya
- 138
- 4
-
This problem seems to be thrown from the source code(AppCompatEditText) – daiyiming Jan 21 '17 at 09:18
-