Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76b7e3b

Browse files
committed
Merge pull request wasabeef#25 from AAkira/fix/leak-context
Fix memory leak at BlurTransformation.
2 parents 36ceccb + c29df80 commit 76b7e3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transformations/src/main/java/jp/wasabeef/glide/transformations/BlurTransformation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public BlurTransformation(Context context, int radius) {
5858
}
5959

6060
public BlurTransformation(Context context, BitmapPool pool, int radius, int sampling) {
61-
mContext = context;
61+
mContext = context.getApplicationContext();
6262
mBitmapPool = pool;
6363
mRadius = radius;
6464
mSampling = sampling;
6565
}
6666

6767
public BlurTransformation(Context context, int radius, int sampling) {
68-
mContext = context;
68+
mContext = context.getApplicationContext();
6969
mBitmapPool = Glide.get(context).getBitmapPool();
7070
mRadius = radius;
7171
mSampling = sampling;

0 commit comments

Comments
 (0)