Skip to content

Commit 19f9aed

Browse files
yuvipandasuchabot
authored andcommitted
Do not leak a TypedArray instance
Change-Id: Ifea85ed88b7054af7b7f8c36ab90cdf9fca36597 GitHub: https://github.com/wikimedia/apps-android-commons/pull/26
1 parent 81e79cf commit 19f9aed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commons/src/main/java/org/wikimedia/commons/MediaWikiImageView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public MediaWikiImageView(Context context, AttributeSet attrs) {
5252
this(context, attrs, 0);
5353
TypedArray actualAttrs = context.getTheme().obtainStyledAttributes(attrs, R.styleable.MediaWikiImageView, 0, 0);
5454
isThumbnail = actualAttrs.getBoolean(0, false);
55+
actualAttrs.recycle();
5556
}
5657

5758
public MediaWikiImageView(Context context, AttributeSet attrs, int defStyle) {

0 commit comments

Comments
 (0)