Memory leak when using ListView in Android

前端 未结 1 1164
囚心锁ツ
囚心锁ツ 2021-01-15 22:56

I am struggling with a memory leak associated with a ListView. I have created the following small program which exhibits this behavior.

What I do is create 2 Linear

相关标签:
1条回答
  • 2021-01-15 23:20

    Your GListView objects are being garbage collected. Leastways, they are called with finalize() when a manual GC is done from DDMS. Unfortunately, the DDMS HPROF file seems incompatible with my version of jhat, and I'm not an Eclipse user so I do not have ready access to MAT.

    0 讨论(0)
提交回复
热议问题