How to avoid memory leaks in callback?

前端 未结 3 1435
离开以前
离开以前 2020-12-28 15:45

Effective Java says:

A third common source of memory leaks is listeners and other callbacks. If you implement an API where clients register call

3条回答
  •  抹茶落季
    2020-12-28 16:32

    Here you may find a clear and practical explanation as well: Memory leaks in Android — identify, treat and avoid

提交回复
热议问题