02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 429970e8 42997048 (type = CloseableStaticBitmap)
02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 439866c0 43986500 (type = NativePooledByteBuffer)
02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 42fc5cf8 42fc5bf0 (type = CloseableStaticBitmap)
....
下面是布局代码:
android:id="@+id/chatting_avatar_iv"
android:layout_width="48dp"
android:layout_height="48dp"
fresco:failureImage="@drawable/user_1"
fresco:failureImageScaleType="fitCenter"
fresco:placeholderImage="@drawable/user_1"
fresco:placeholderImageScaleType="fitCenter"
fresco:roundedCornerRadius="180dp" />
加载的时候 :
String userPic = OssUtils.thumbnailUserPic(PictureUtil.getUserPic(context,msg.getPicture()));
Uri uri = Uri.parse(userPic);
avatar.setImageURI(uri);
这样使用应该是最基本的, 正常情况是没问题的吧 . 会不会因为当前activity关闭的时候,此activity没有被销毁 . 导致这里的内存也没有释放.