Bug 1170884 - Call TypedArray.recycle after use in TextSelectionHandle. r?capella
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 10 Jun 2015 15:09:17 -0700
changeset 248152 e0319ae4326cd9b409f4150a1f521c7c8410d759
parent 248151 ac0a2b395a31337d33e81f3c8ba03b81d34e1ded
child 248153 ab13fee627df98e881162949f12de47b5f6b66d1
push id13502
push usermichael.l.comella@gmail.com
push dateThu, 11 Jun 2015 17:37:10 +0000
treeherderfx-team@e0319ae4326c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscapella
bugs1170884
milestone41.0a1
Bug 1170884 - Call TypedArray.recycle after use in TextSelectionHandle. r?capella
mobile/android/base/TextSelectionHandle.java
--- a/mobile/android/base/TextSelectionHandle.java
+++ b/mobile/android/base/TextSelectionHandle.java
@@ -64,16 +64,17 @@ class TextSelectionHandle extends ImageV
     private static final int IMAGE_LEVEL_RTL = 1;
 
     public TextSelectionHandle(Context context, AttributeSet attrs) {
         super(context, attrs);
         setOnTouchListener(this);
 
         TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TextSelectionHandle);
         int handleType = a.getInt(R.styleable.TextSelectionHandle_handleType, 0x01);
+        a.recycle();
 
         if (handleType == 0x01)
             mHandleType = HandleType.ANCHOR;
         else if (handleType == 0x02)
             mHandleType = HandleType.CARET;
         else
             mHandleType = HandleType.FOCUS;