-
-
[求助]看看雪客户端源码中ImageViewWithCache中疑问?
-
发表于: 2013-5-8 17:05 5009
-
源码中ImageViewWithCache.java文件
private static HashMap<URL, ArrayList<ImageViewWithCache>> s_updateQueue = new HashMap<URL, ArrayList<ImageViewWithCache>>();
这里面在静态全局变量s_updateQueue 中保存了Activity的ImageView(即ImageViewWithCache)。如果Activity销毁了,这里面的ImageView会怎么样?
有没有什么内存泄漏的问题?
猜测ImageView保存了销毁的Activity的上下文引用,导致Activity资源不能被系统回收。多次打开并销毁此Activity是否存在内存泄漏问题?
求解,我错了还是怎么样。谢谢!
private static HashMap<URL, ArrayList<ImageViewWithCache>> s_updateQueue = new HashMap<URL, ArrayList<ImageViewWithCache>>();
这里面在静态全局变量s_updateQueue 中保存了Activity的ImageView(即ImageViewWithCache)。如果Activity销毁了,这里面的ImageView会怎么样?
有没有什么内存泄漏的问题?
猜测ImageView保存了销毁的Activity的上下文引用,导致Activity资源不能被系统回收。多次打开并销毁此Activity是否存在内存泄漏问题?
求解,我错了还是怎么样。谢谢!
赞赏
赞赏
雪币:
留言: