Merge "Prevent a leak when using View.postInvalidate(left, top, right, bottom)"

This commit is contained in:
Romain Guy
2011-09-01 17:02:28 -07:00
committed by Android (Google) Code Review

View File

@@ -9362,7 +9362,6 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
if (mAttachInfo != null) {
mAttachInfo.mHandler.removeMessages(AttachInfo.INVALIDATE_MSG, this);
mAttachInfo.mHandler.removeMessages(AttachInfo.INVALIDATE_RECT_MSG, this);
}
mCurrentAnimation = null;
@@ -13910,6 +13909,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
}
public void onReleased(InvalidateInfo element) {
element.target = null;
}
}, POOL_LIMIT)
);